In this work, the synthesis of zeolitic imidazolate framework-8 (ZIF-8) crystals and their subsequent application as effective sorbents for extraction and preconcentration of several benzomercaptans from environmental complex samples is described. These materials were prepared by solvothermal approach varying the concentration of n-butylamine modulator to modify the surface of the metal-organic framework. The resulting materials were characterized by scanning and transmission electron microscopy, powder X-ray diffraction and Fourier transform infrared spectroscopy. The ZIF-8 material that gave the best features was selected as extractive phase and the influence of various parameters (sample pH and elution solvent composition, among others) on the extraction efficiency of target compounds were investigated. Under the optimal conditions of the method, the tested analytes (2-mercaptobenzothiazole, 2-mercaptobenzoxazole and 2-mercapto-6-nitrobenzothiazole) were retained and eluted quantitatively with alkaline 50:50 (v:v) methanol-water mixture. Using the proposed method, low limits of detection, in the range of 16–21 ng L−1 for aqueous samples and 0.4–0.5 µg kg−1 for soil samples, were achieved whereas the precision (expressed as relative standard deviation) was lower than 7%. The resulting solid-phase extraction protocol, using the zeolitic material as sorbent, was combined with liquid chromatography and ultraviolet-vis detector and successfully applied to determine traces of these organic pollutants in environmental samples.