Nitrate pollution poses significant threats to both aquatic ecosystems and human well-being, particularly due to eutrophication and increased risks of methemoglobinemia. Conventional treatment for nitrate-contaminated wastewater face challenges stemming from limited availability of carbon sources and the adverse impacts of toxins on denitrification processes. This study introduces an innovative Intimately Coupled Photocatalysis and Biodegradation (ICPB) system, which utilizes Ag3PO4/Bi4Ti3O12, denitrifying sludge, and polyurethane sponge within an anoxic environment. This system demonstrates remarkable efficacy in simultaneously removing bio-recalcitrant organic compounds (such as sulfamethoxazole) and nitrates, surpassing standalone treatment methods. Optimally, the ICPB achieves complete removal of sulfamethoxazole, along with 87.7 % removal of DOC, and 81.8 % reduction in nitrate levels. Its ability to sustain pollutant removal and biological activity over multiple cycles can be attributed to the special formation of biofilm and mineralization of sulfamethoxazole, minimizing both photocatalytic damage and toxic inhibitory effects on microbes. The dominant microbial genera of ICPB system included Castellaniella, Acidovorax, Raoultella, Giesbergeria, and Alicycliphilus. Additionally, the study sheds light on a potential mechanism for the concurrent treatment of recalcitrant organics and nitrates by the ICPB system, presenting a novel and highly effective approach for addressing biologically resistant wastewater.