The primary function of a Central Processing Unit (CPU) is to execute instructions and process data.
Often referred to as the "brain" of a computer, the CPU performs arithmetic, logic, and control operations. It interprets and carries out commands from software, manipulates data, and coordinates the activities of other computer components.
Essentially, it's the component responsible for making a computer work.