The system unit contains the main electronic components of a computer, including the processor, motherboard, memory, and storage devices. The processor performs instructions and calculations using components like the control unit, arithmetic logic unit, and registers. The motherboard connects the components and includes expansion slots for additional hardware. Peripheral devices like keyboards, mice, and monitors connect to the system unit but are not contained within the case.