Abstract: In this study, a novel dual-template molecularly imprinted polymer capable of simultaneous recognizing 4 phenothiazines and 5 benzodiazepines was synthesized. From comparison of the 3D conformations of the two templates and the analytes, it was concluded that the shapes and sizes of the used templates showed important influence on the polymer's recognition ability. The polymer was used to prepare a solid phase extraction cartridge that was used to purify the extract of swine complete formula feed sample obtained with 10 mL acetonitrile/0.1% formic acid (3:7, v/v). The results were determined with an ultra performance liquid chromatography method. During the experiments, the flow rate, loading solvent, washing solvent and eluting solvent were optimized respectively. The limits of detection for the 9 drugs were in a range of 1.5-10 ng g-1, and the recoveries from the fortified blank feed samples were in a range of 85.6%-97.9%. This is the first study reporting the use of molecularly imprinted polymer based extraction method for determination of the two classes of sedatives in animal feed