A novel molecular imprinting polymer (MIP) was prepared by bulk polymerization using sulpiride as the template molecule, itaconic acid (ITA) as the functional monomer and ethylene glycol dimethacrylate (EGDMA) as the crosslinker. The formation of the MIP was determined as the molar ratio of sulpiride-ITA-EGDMA of 1:4:15 by single-factor experiments. The MIP showed good adsorption property with imprinting factor α of 5.36 and maximum adsorption capacity of 61.13 μmol/g, and was characterized by scanning electron microscopy (SEM), Fourier-transform infrared spectroscopy (FT-IR) and surface area analysis. With the structural analogs (amisulpride, tiapride, lidocaine and cisapride) and small molecules containing a mono-functional group (p-toluenesulfonamide, formamide and 1-methylpyrrolidine) as substrates, static adsorption, kinetic adsorption, and rebinding experiments were also performed to investigate the selective adsorption ability, kinetic characteristic, and recognition mechanism of the MIP. A serial study suggested that the highly selective recognition ability of the MIP mainly depended on binding sites provided by N-functional groups of amide and amine. Moreover, the MIP as solid-phase extractant was successfully applied to extraction of sulpiride from the mixed solution (consisted of p-toluenesulfonamide, sulfamethoxazole, sulfanilamide, p-nitroaniline, acetanilide and trimethoprim) and serum sample, and extraction recoveries ranged from 81.57% to 86.63%. The tentative tests of drug release in stimulated intestinal fluid (pH 6.8) demonstrated that the tablet with the MIP–sulpiride could obviously inhibit sulpiride release rate. Thus, ITA-based MIP is an efficient and promising alternative to solid-phase adsorbent for extraction of sulpiride and removal of interferences in biosample analysis, and could be used as a potential carrier for controlled drug release.