Blockchain is a distributed ledger system where nodes work together to validate transactions in a coordinated fashion without a central authority. It allows for decentralized consensus through mechanisms like proof-of-work. The main challenges in distributed systems are coordination between nodes and achieving fault tolerance. The CAP theorem states that a distributed system cannot achieve consistency, availability, and partition tolerance simultaneously. Blockchain sacrifices consistency for availability and partition tolerance. It uses elements like addresses, transactions, blocks, and consensus mechanisms like proof-of-work to securely and immutably record transactions on the distributed ledger.