A smart contract is a program stored on a blockchain that runs when pre-determined conditions are met.