An eco‐friendly, controllable citrate‐EDTA complexing sol–gel method is employed to systematically synthesize a series of B
x
Ce1−x
TiO2 (x = 0.9, 0.8, 0.7 at%) codoped photocatalysts. The degradation of ciprofloxacin (CIP) and norfloxacin (NOR) antibiotics, as well as Escherichia coli disinfection under sunlight, is assessed using these synthesized codoped photocatalysts. After physicochemical characterization of the synthesized catalysts for particle size, surface area, morphology, crystal structure, surface chemistry, bandgap energy values, and recombination, it is evident that the codoping has improved the visible light absorption, reduced the recombination, and promoted higher crystallinity as well as anatase phase content. The codoped catalysts also demonstrate an enhanced photocatalytic activity under solar light with regard to the degradation of the chosen antibiotics when compared to the performance of the monodoped counterparts or the latest generation catalysts from the literature. The highest degradation performance (≈98%) is shown by B0.8Ce0.2TiO2 in the case of CIP and B0.9Ce0.1TiO2 in the case of NOR. Also, in the case of microbial disinfection, these codoped catalysts are much better (by a factor of ≈10) than that of the monodoped catalysts.