In this study, a novel imidazolium-based ionic liquid (IL) coating was developed for stir bar sorptive extraction (SBSE) using a sol-gel method. The effects of different counterions, conditioning temperatures and polymer compositions were investigated. The stir bar with bis((trifluoromethyl)sulfonyl) amide 1-butyl-3-(3-(triethoxysilyl)propyl)-1H-imidazol-3-ium showed good mechanical and thermal stability with high resistance to water solubilization. The extraction efficiency of the IL-coated stir bar was evaluated on a mixture of 11 compounds presenting a wide range of polarities (log K o/w values between 0.65 and 7.21) using thermodesorption gas chromatography coupled with Orbitrap high-resolution mass spectrometry (TD-GC-Orbitrap-HRMS). The results showed that extraction yields were increased for the IL-stir bar. In contrast, the commercial polydimethylsiloxane (PDMS) stir bar resulted in decreased yields with salt addition, particularly for compounds with log K o/w > 4. SBSE of contaminants was performed on natural waters collected from France, followed by nontargeted analysis using TD-GC-Orbitrap-HRMS. The results revealed the detection of over 1,000 compounds, with 334 compounds annotated after deconvolution. The IL-stir bar with the addition of NaCl specifically extracted five times more compounds (167 compounds) than did the commercial PDMS stir bar (29 compounds) and more than 10 times more with the addition of NaCl with the PDMS stir bar (15 compounds). Various pollutants, including pesticides, personal care products, polychlorinated biphenyls (PCBs) and polycyclic aromatic hydrocarbons (PAHs), were identified. The annotations of the identified compounds were classified according to a level of confidence based on comparisons of retention indices, match library spectra and high-resolution mass filters., Competing Interests: Declaration of competing interest The authors declare the following financial interests/personal relationships which may be considered as potential competing interests: MEZIANI reports financial support was provided by PHC TASSILI. If there are other authors, they declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper., (Copyright © 2024. Published by Elsevier B.V.)