Industrial activities release dye-containing effluents that pose significant risks to aquatic ecosystems. Herein, Fe-doped TiO 2 /Ag 3 PO 4 ternary nanocomposites and their constituent photocatalysts were synthesized by precipitation and evaluated for Rhodamine B (RhB) degradation. Structural, functional, optical, and electronic properties were characterized by XRD, FTIR, PL, and UV-Vis DRS. Under visible light irradiation, photocatalytic activity followed the order Fe-doped TiO 2 /Ag 3 PO 4 > TiO 2 /Ag 3 PO 4 > Ag 3 PO 4 > Fe-doped TiO 2 > TiO 2 . The optimized Fe-doped TiO 2 /Ag 3 PO 4 achieved 95.75% RhB degradation within 180 min under visible light and 98.75% under solar irradiation. For laboratory-simulated dye, degradation efficiencies reached 51.15% indoors and 87% outdoors. The catalyst retained 55% activity after five cycles, demonstrating good stability. Scavenger experiments identified • O 2 - , • OH, and h + as the principal reactive species . Therefore, Fe-doped TiO 2 /Ag 3 PO 4 shows strong potential for visible- and solar-light-driven treatment of dye-contaminated wastewater.