The MIP was synthesized and used as a packing of solid-phase extraction.
LC–MS/MS was used for the determination of macrolide drugs residues in muscles.
Mean recoveries for ten macrolides were from 60.7% to 100.3% with RSD <14%.
The limits of detection for ten macrolides were between 0.1 and 0.4 μg kg−1.