A smart contract is a computer protocol intended to facilitate, verify or enforce a contract on the blockchain without third parties.
Smart contracts enable transactions and agreements to be anonymously executed among two or more parties that do not trust each other, without the need for a third-party authority, justice system or another external mechanism.
A smart contract is analogous to a vending machine, as opposed to a store where you have to pay a merchant to buy. With a vending machine, you don’t have to deal directly with the merchant (vending machine owner) since you can simply transact automatically by inserting coins in the machine and your chosen soda will drop. This direct way of transacting without the need to know or trust who you’re dealing with is what makes a smart contract favorable. In fact, businesses have already started implementing smart contracts in their systems as they provide better protection from losses, as well as make customers feel safe.