A polyvinylimidazole/sol-gel composite is proposed as a novel solid-phase microextraction fiber to extract five halobenzenes from the headspace of aqueous solutions in combination with gas chromatography with mass spectrometry. The prepared fiber was characterized by scanning electron microscopy and Fourier transform infrared spectroscopy. The obtained results showed that porous polyvinylimidazole/sol-gel composite was chemically deposited on fused silica fiber. The effect of important extraction parameters including extraction temperature, extraction time, and salt content were investigated. The optimum conditions were as follows: extraction temperature 25°C, extraction time 20 min, and salt concentration 30 w/v%. Detection limits and relative standard deviations of the developed method for halogenated benzenes were below 0.1 pg/mL and 15%, respectively. Repeatability of the proposed method, explained by relative standard deviation, varied between 5.48 and 9.15% (n = 5). The limits of detection (S/N = 3) ranged between 0.01 and 0.10 ng/L using gas chromatography with mass spectrometry with selected ion monitoring mode. For real sample analysis, three types of water samples with different matrices (ground, surface, and tap water) were studied. The optimized procedure was applied to extraction and method validation of halogenated benzenes in spiked water samples., (© 2014 WILEY-VCH Verlag GmbH & Co. KGaA, Weinheim.)