A smart contract is a program deployed to the blockchain that executes automatically when called, with no operator who can intervene. It holds funds and enforces rules deterministically: an escrow that releases on conditions, a token that tracks balances. Its power and danger are the same — it does precisely what the code says, bugs included, and usually can't be stopped or edited.