Smart contract
A smart contract is a program on a blockchain that runs when a transaction or another contract calls it.
Example
A smart contract on a decentralized exchange can check the conditions of a token swap and carry it out if they are met.
What to watch for
The network runs the code as written. A bug can let people move funds in ways the developers never intended.