A smart contract is a self-executing digital contract with predefined rules stored on the blockchain. It automatically executes transactions when conditions are met, eliminating intermediaries and ensuring trust.