An operating system, or OS, is a fundamental piece of software that manages and controls the hardware and software resources of a computer. It provides a platform for applications to run on and serves as the intermediary between the user and the computer's hardware.