Smart contracts are self-executing contracts with the terms of the agreement directly written into code. These contracts automatically execute and enforce the terms without the need for intermediaries. Originating from blockchain technology, smart contracts ensure security, transparency, and efficiency.