An Operating System (OS) plays a critical role in managing the computer's resources and providing an interface for users to interact with the system. Its main functions include resource management, process management, memory management, file management, device management, and user interface provision, either through command-based or graphical interfaces.