Molecularly imprinted polymers with methylammonium lead halide perovskite quantum dots (MIP@MAPbBr3 PQDs) have been prepared and applied tothe determination of benzo(a)pyrene (BaP) for the first time. The photoluminescence (PL) of MIP@MAPbBr3 PQDs was enhanced due to the surface passivation of defects by BaP. PL excitation and emission spectra, X-ray diffraction, Fourier transform infrared, and time-resolved PL studies suggest that the interaction between MIP@MAPbBr3 PQDs and BaP is a dynamic process. After MIP@MAPbBr3 PQDs were incubated with BaP, the benzene ring in the molecular structure of BaP can interact with MIP@MAPbBr3 PQDs through π electrons, which reduces non-radiative recombination of MIP@MAPbBr3 PQDs and lengthens excited state lifetime. The PL intensity of the MIP@MAPbBr3 PQDs-BaP system was monitored at 520 nm with 375 nm excitation. Under optimized conditions, the PL intensity of MIP@MAPbBr3 PQDs is linear with the concentration of BaP in the 10 to 100 ng·mL-1 range, with a detection limit of 1.6 ng·mL-1. The imprinting factor was 3.9, indicating excellent specificity of MIP@MAPbBr3 PQDs for BaP. The MIP@MAPbBr3 PQDs were subsequently applied to the PL analysis of BaP in sunflower seed oil, cured meat, and grilled fish samples, achieving recoveries from 79.3 to 107%, and relative standard deviations below 10%. This molecularly imprinted fluorescence assay improves the selectivity of BaP in complex mixtures and could be extended to other analytes.