Smart contracts are self-executing contracts that are encoded on a blockchain. They allow for the automatic execution of transactions and the enforcement of contract terms without the need for intermediaries.