Smart contracts are self-executing contracts with the terms of the agreement directly written into code. They automatically execute actions (like transferring funds) when predefined conditions are met, eliminating the need for intermediaries.