The CPU (Central Processing Unit) is the device in a computer that performs calculations. It contains a clock that controls timing and can perform multiple calculations per clock cycle. The CPU communicates with other devices via buses and can perform arithmetic, move data between memory locations, and make decisions based on instructions. Modern CPUs have multiple cores and billions of transistors, allowing them to execute billions of instructions per second.