The CPU fetches instructions from memory, decodes them, executes them, and then stores the results. It does this by using a set of registers to hold pieces of data and the address of the next instruction to be executed.