Covalent organic frameworks (COFs) are highly porous crystalline polymers formed through covalent bonding of molecular building blocks. Numerous fabrication strategies have been developed, including solvothermal, ionothermal, microwave, mechanochemical, and sonochemical methods, alongside ligand substitution and post-modification techniques, which allow for precise control over the structures and properties of COFs. The exceptional physicochemical stability, large specific surface area, broad visible light absorption, and extended π-conjugated systems have sparked significant interest in photocatalytic applications. Recently, COFs have shown remarkable efficacy in environmental remediation, demonstrating the ability to degrade a wide range of organic pollutants, including dyes, antibiotics, and drugs, as well as to reduce/oxidize heavy metals such as Cr(VI), U(VI), and As(III), in addition to targeting biological pollutants. This review comprehensively explores recent advancements in COFs-based photocatalysis, covering synthetic methods, COF types, modification method, theoretical calculations, environmental applications, and underlying mechanisms. Additionally, the challenges and opportunities for COFs as a robust, cost-effective technology in practical applications was discussed, and offering valuable insights for researchers in environmental remediation, materials science, and photocatalysis.