The application of semiconductor photocatalysts in wastewater treatment always has a drawback, which is the lack of selectivity for pollutants, but molecular imprinting technology (MIT) is a remarkable method for preparing highly selective adsorbents for low concentration target pollutants. Up to now, the research of molecular imprinting materials has mainly focused on organic polymers, and there has been little research on inorganic molecular imprinting materials. In the present work, we introduced carbon quantum dots (CQDs) into the flower-like hierarchical ZnO to prepare photocatalysts CQDs/ZnO. Further, with ciprofloxacin (CIP) as the template molecule, a molecular imprinting material MIP-CQDs/ZnO 1−x was prepared by introducing both oxygen vacancies and imprinted cavities into CQDs/ZnO by the hydrothermal calcination method. It can not only increase the concentration of oxygen vacancies and broaden the light absorption range of zinc oxide without changing the crystal form of ZnO but also make it have the characteristics of preferential adsorption and degradation of CIP during the degradation process. Under the synergistic effect of CQDs, oxygen vacancies, and molecularly imprinted cavities, the molecularly imprinted material exhibits excellent photocatalytic and selective adsorption performance.