Metal-organic frameworks (MOFs) have received great attention as novel sorbents due to their fascinating structures and intriguing potential applications in various fields. In this work, a MIL-101(Cr)-coated solid-phase microextraction (SPME) fiber was fabricated by a simple direct coating method and applied to the determination of volatile compounds (BTEX, benzene, toluene, ethylbenzene, m-xylene and o-xylene) and semi-volatile compounds (PAHs, polycyclic aromatic hydrocarbons) from water samples. The extraction and desorption conditions of headspace SPME (HS-SPME) were optimized. Under the optimized conditions, the established methods exhibited excellent extraction performance. Good precision (<7.7%) and low detection limits (0.32-1.7 ng L(-1) and 0.12-2.1 ng L(-1) for BTEX and PAHs, respectively) were achieved. In addition, the MIL-101(Cr)-coated fiber possessed good thermal stability, and the fiber can be reused over 150 times. The fiber was successfully applied to the analysis of BTEX and PAHs in river water by coupling with gas chromatography-mass spectrometry (GC-MS). The analytes at low concentrations (1.7 and 10 ng L(-1)) were detected, and the recoveries obtained with the spiked river water samples were in the range of 80.0-113% and 84.8-106% for BTEX and PAHs, respectively, which demonstrated the applicability of the self-made fiber.