Stable layered MoS2 nanosheets were employed as a stationary phase in gas chromatography. A wide range of different analytes were screened with excellent separation efficiency.