An operating system (OS) is a fundamental software component that manages computer hardware resources and provides a platform for running applications. It serves as an intermediary between users and computer hardware, facilitating communication and coordination between software and hardware components. Operating systems handle tasks such as memory management, process scheduling, file system management, and device control to ensure efficient and secure operation of a computer system.