Residual drug pollutants in water environments represent a severe risk to human health, so developing a cheap, environmentally friendly, and effective photocatalyst to deal with them has become a hot topic. Herein, a magnetically separable Fe3O4@TiO2/g-C3N4 photocatalyst with a special heterojunction structure was fabricated, and its photocatalytic performance was assessed by degrading tetracycline (TC). Compared to Fe3O4@TiO2, the synthesized Fe3O4@TiO2/g-C3N4 exhibited superior TC degradation performance, which was primarily ascribed to the heterojunction formed between TiO2 and g-C3N4 and its ability to enhance the visible light absorption capacity and reduce the photoinduced electron/hole recombination rate. Moreover, a free radical capture experiment further confirmed that·O2− and h+ are the predominant components in the TC degradation reaction. Under UV–Vis irradiation, the TC degradation rate escalated to as high as 98% within 120 min. Moreover, Fe3O4@TiO2/g-C3N4 was demonstrated to be easily recovered by magnetic separation without any notable loss even after five cycles, showing exceptional stability and reusability. These findings indicate that Fe3O4@TiO2/g-C3N4 is a promising photocatalyst for environmental remediation that may provide a sustainable approach to degrading antibiotic pollutants in wastewater.