A file system is a method and data structure that an operating system uses to manage files on a disk or partition, determining how data is stored and retrieved. It provides a way to separate the data into pieces and give each piece a name, making it easier to organize, retrieve, and manipulate files efficiently.