Smart contract is a program that will run automatically based on the terms of the contract.
In the crypto world, the contract code exists in blockchain and will be executed when the conditional is meet.
The main purposes is to allow you to trade the crypto and simplify the business without involved the middleman.