Here, a simple, reliable and low-cost method based on molecularly imprinted polymer (MIP) as selective sorbent of solid-phase extraction (SPE) was proposed for the determination of OTA in ginger by ultra-performance liquid chromatography coupled with fluorescence detection (UPLC-FLR).