Existing wastewater treatment technologies face the key challenge of simultaneously removing emerging contaminants and nutrients from wastewater efficiently, with a simplified technological process and minimized operational costs. In this study, a novel alginate-embedded magnetic biochar-anoxygenic photosynthetic bacteria composite microspheres (CA-MBC-PSB microspheres) was prepared for efficient, cost-effective and one -step removal of antibiotics and NH4+-N from wastewater. Our results demonstrated that the CA-MBC-PSB microspheres removed 97.23% of sulfadiazine (SDZ) within 7 h and 91% of NH4+-N within 12 h, which were 21.23% and 38% higher than those achieved by pure calcium alginate-Rhodopseudomonas palustris microspheres (53% and 45.7%), respectively. The enhanced SDZ and NH4+-N removal were attributed to the enhanced photoheterotrophic metabolism and excretion of extracellular photosensitive active substances from R. Palustris through the photo-bioelectrochemical interaction between R. Palustris and magnetic biochar. The long-term pollutants removal performance of the CA-MBC-PSB microspheres was not deteriorated but continuously improved with increasing ruse cycles with a simultaneous removal efficiency of 99% for SDZ and 92% for NH4+-N after three cycles. The excellent stability and reusability were due to the fact that calcium alginate acts as an encapsulating agent preventing the loss and contamination of R. palustris biomass. The CA-MBC-PSB microspheres also exhibited excellent performance for simultaneous removal of SDZ (89% in 7 h) and NH4+-N (90.7% in 12 h) from the secondary effluent of wastewater treatment plant, indicating the stable and efficient performance of CA-MBC-PSB microspheres in practical wastewater treatment.