In recent years, pharmaceutical and personal care products (PPCPs) have been detected in diverse environments (including groundwater, river water, and municipal wastewater).This work characterizes removal of trace antibiotics (doxycycline (DC), erythromycin (ERY)) from water samples. For this purpose a matrix solid-phase dispersion (MSPD) microextraction method was developed for extraction of doxycycline and erythromycin. Nanoparticles were used as sorbent. Spectrophotometric determine was developed for isolation and preconcentration of doxycycline and erythromycinform aqueous samples. In this experiment several parameters such as pH, nanoparticle amount, effect of the salt, extraction time and extraction temperature were optimized for the extraction with two nanoparticles. Under the optimized conditions, a linear range of 10 -50000 μgL−1 withR2= 0.994, 0.971and detection limit of 0.05 and 0.037 μg L-1 were obtained for doxycycline and rythromycin with Fe3O4 nanoparticles, respectively .Results were revealed that the Fe3O4 nanoparticles were generally able to extraction of two antibiotics.