A smart contract is a self-executing contract with terms of the agreement between buyer and seller being directly written into lines of code. Smart contracts are stored on blockchains like Ethereum. If and when the pre-defined terms are met, the agreement is automatically enforced.

Here is a video (4m16s) that outlines the basics of a smart contract: 

Did this answer your question?