The CAP theorem states that it is impossible for a distributed computer system to simultaneously provide consistency, availability, and partition tolerance. It explains the fundamental tradeoffs between these aspects of distributed systems. Consistency means that all nodes see the same data at the same time. Availability means that node failures do not prevent survivors from continuing to operate. Partition tolerance means the system continues operating despite network failures. The theorem proves that a distributed system can only satisfy two of these properties at once.