In this work, a dual‐emission ratiometric fluorescence sensor was prepared and is used for the detection of sulfadiazine drug. In this paper, the hydrothermal method was used to synthesize CQD (fluorescence response signal) and sulfhydryl modified cadmium telluride quantum dots (fluorescence reference signal), and the molecularly imprinted polymer is synthesized following. After eluting the template molecule SDZ, the blot recognition site remains on the surface of the imprinted polymer. During the process of detection, due to electron transfer between SDZ and CQDs, holes of stimulated electrons are filled. It leads fluorescence quenching around 430 nm, which greatly improves sensor selection performance. Compared with traditional single‐emission fluorescence sensors, ratiometric fluorescence sensors have a wider linear range and higher detection accuracy. Under the optimal conditions, the sensor exhibited excellent performance in terms of low detection limit (4.2 nmol L−1) and its satisfactory linear range (2–20 μmol L−1). This intelligent response change mode also provide prospect for other sulfonamide antibiotics detection and offer a reference to signal transform for other molecular imprinting technology.This article is protected by copyright. All rights reserved.