An operating system (OS) is a fundamental software component that acts as an intermediary between computer hardware and user applications. It provides a set of essential services and functionalities to manage and control hardware resources, execute software programs, and facilitate user interactions with the computer.