GC operates on the principle of partitioning a sample between a stationary phase and a mobile phase. The sample is vaporized and carried by an inert gas (the mobile phase) through a column that contains the stationary phase. Different compounds in the sample interact differently with the stationary phase, causing them to elute at different times, known as their retention time. These retention times help in identifying and quantifying the compounds.