In this article, the easy synthesis of magnetic nanoparticles-nylon 6 composite is presented, characterized and applied in the microextraction field. The one-step synthesis of the composite is performed by a solvent changeover playing with the different solubility of the polymeric network in formic acid and water. The new material has been characterized by different techniques including infrared spectroscopy, transmission and scanning microscopy. The extraction performance of the composite under a dispersive micro solid phase extraction format has been evaluated by determining four polycyclic aromatic hydrocarbons (benzo[b]fluoranthene, fluoranthene, indeno[1,2,3-cd]pyrene and phenanthrene) in water using ultra performance liquid chromatography (UPLC) combined with photo diode array detection. The developed methodology allows the determination of the analytes with limits of detection in the range from 0.05 μg/L (benzo[b]fluoranthene) to 0.58 μg/L (phenanthrene). The repeatability of the method was better than 6.9% at the limit of quantification level. The relative recoveries varied in the interval 80-111%.