Blockchain and smart contracts are connected because smart contracts are self-executing contracts with the terms of the agreement directly written into code on the blockchain. They automate transactions and processes in a transparent, secure, and decentralized manner.