Smart contracts are self-executing contracts with the terms of an agreement between the buyer and the seller being directly written into lines of code. These contracts automatically execute and enforce the terms of the agreement when predefined conditions are met. On the Ethereum network, smart contracts are written in Solidity and allow for various decentralized applications to be built, providing transparency, security, and efficiency in executing digital contracts.