The invention discloses a near-infrared fluorescent probe for detecting CYP 1A1 enzyme. According to the near-infrared fluorescent probe, a molecular structure is modified, so the molecular structure can realize specific detection on the CYP 1A1 enzyme, and the near-infrared fluorescent probe has high selectivity; meanwhile, the wavelength of fluorescence emitted by a fluorophore in the fluorescent probe is in a near-infrared region, so the interference of green light emitted by an organism can be avoided during fluorescence detection; BrDXMM is very weak in fluorescence performance, and HDXMM has good fluorescence emission spectrum characteristics (590-800 nm) under the same condition, so the BrDXMM and the HDXMM can be distinguished well, and the fluorescent probe has high signal-to-noise ratios in vivo and in vitro; the fluorescent probe also has good biocompatibility, and cell activity is still greater than 85% when cells are incubated for 24 hours by using a culture medium containing BrDXMM (100 [mu]M); and the fluorescent probe disclosed by the invention can be used for determining the activity of recombinant single enzyme in a solution and CYP 1A1 enzyme in living cells, in-vitro tissues, living zebra fish and tumor-bearing nude mouse, and is wide in an application range.