An operating system is a piece of software which acts as an interface between the user and the hardware. It facilitates the process of giving commands to the hardware and acts as a platform for other programs to run on.