Smart contracts automate the execution of agreements in blockchain applications by defining rules, conditions, and actions that are automatically enforced when predefined conditions are met. They eliminate the need for intermediaries and ensure trustless transactions.