In this study, a highly efficient CoFe2O4-anchored g-C3N4 nanocomposite with Z-scheme photocatalyst was developed by facile calcination and hydrothermal technique. To evaluate the crystalline structure, sample surface morphology, elemental compositions, and charge conductivity of the as-synthesized catalysts by various characterization techniques. The high interfacial contact of CoFe2O4 nanoparticles (NPs) with g-C3N4 nanosheets reduced the optical bandgap from 2.67 to 2.5eV, which improved the charge carrier separation and transfer. The photo-degradation of methylene blue (MB) and rhodamine B (Rh B) aqueous pollutant suspension under visible-light influence was used to investigate the photocatalytic degradation activity of the efficient CoFe2O4/g-C3N4 composite catalyst. The heterostructured spinel CoFe2O4 anchored g-C3N4 photocatalysts (PCs) with Z-scheme show better photocatalytic degradation performance for both organic dyes. Meanwhile, the efficiency of aqueous MB and Rh B degradation in 120 and 100min under visible-light could be up to 91.1% and 73.7%, which is greater than pristine g-C3N4 and CoFe2O4 catalysts. The recycling stability test showed no significant changes in the photo-degradation activity after four repeated cycles. Thus, this work provides an efficient tactic for the construction of highly efficient magnetic PCs for the removal of hazardous pollutants in the aquatic environment.