Magnetic fluorescent composite nanomaterials have broad application prospects in the fields of biological imaging, anticounterfeiting identification, suspicious object tracking, and identification of latent fingerprints in forensic medicine. For an effective taggant, a clearly visible identifying mark is necessary to enable observers to capture labeling information quickly and accurately, even from a distance. The preparation method of magnetic fluorescent composite materials is complicated and usually needs different surface modification and assembly processes. The limited loading capacity of fluorescent materials also limits the fluorescence properties of the composite, so it is difficult to produce obvious fluorescence as a taggant to meet the requirements of visible labeling. In this study, a core−shell structure of a magnetic fluorescent composite was prepared by using the metal−organic framework ZIF-8 as the host of fluorescent materials and an encapsulation shell coated on the Fe 3 O 4 nanoparticles. The porous ZIF-8 is beneficial for increasing the loading capacity of fluorescent materials to ensure the fluorescence performance of the composite materials. Further modification of the composite surface prevented the desorption of fluorescent materials from the pores of ZIF-8, enabling the samples to maintain good fluorescence properties even after multiple washing cycles. The preparation method is simple, rapid, and cost-effective, and the prepared magnetic fluorescent composite nanomaterial has high magnetic separation performance and fluorescence performance, making it a promising material for identification, marking, and tracking.