In this work, 1‐vinyl‐3‐butylimidazolium bis((trifluoromethyl) sulfonyl)imide modified Fe3O4 magnetic nanoparticles were prepared by “thiol‐ene” click chemistry. The morphology, composition, and structure of as prepared functional material was investigated with several technique. Such magnetic material was applied to magnetic solid‐phase extraction of pyrethroid pesticides, and the analytes were quantitatively analyzed by gas chromatography‐mass spectrometry. Significant parameters of proposed method, including adsorbents amount, vortexing time, solution pH, and eluent volume and type, were optimized. Under the optimized condition, this method exhibited good linearity in the range of 0.19–200 μg L−1 for resmethrin, 0.44–200 μg L−1 for bifenthrin, 0.35–200 μg L−1 for fenpropathrin, and 0.31–200 μg L−1 for cyhalothrin, with the correlation coefficients>0.9992, and low limits of detection (0.06–0.13 μg L−1, S/N=3). The method was successfully applied to quantitative determination of pyrethroid pesticides in environmental water sample with the satisfactory recovery ranging from 85.7 % to 110.4 % and relative standard deviations ranging from 1.3 % to 6.6 %. The results indicated that the proposed magnetic solid‐phase extraction is a simple, efficient and time‐saving method.