The degradation studies of ampicillin were conducted using the best-performing ternary-doped photocatalysts, specifically B2Ce1Ag0.1TiO2 and B2Ce0.1Ag0.06TiO2, under sunlight at room temperature, aiming to evaluate their effectiveness in breaking down this widely used antibiotic, which poses significant environmental concerns due to its persistence in wastewater and potential to contribute to antimicrobial resistance. The results indicated that while TiO2 alone demonstrated excellent photocatalytic activity, achieving nearly 100% degradation of ampicillin at an optimal catalyst loading of 1 g/L across concentrations of 10 ppm, 20 ppm, and 30 ppm, the ternary-doped catalysts did not perform as significantly under sunlight. The degradation experiments were meticulously designed, with the photocatalysts subjected to a 30-minute dark phase to allow for adsorption equilibrium before exposure to sunlight. During this initial phase, the degradation of ampicillin was observed to be 20% for the 30 ppm solution and 35% for the 10 ppm solution, indicating some level of adsorption and initial degradation even in the absence of light. However, after 90 minutes of sunlight exposure, TiO2 achieved over 96% degradation for all concentrations, showcasing its superior photocatalytic efficiency. In contrast, the ternary-doped catalyst B2Ce1Ag0.1TiO2 exhibited a minimum degradation of 16% at 50 ppm and a maximum of 27% at 10 ppm after the same 30-minute dark phase. Following 120 minutes of sunlight exposure, the degradation rates improved, with a minimum of 45% and a maximum of 68% observed, indicating that while the ternary-doped catalysts showed some photocatalytic activity, they were not as effective as Titanium dioxide The results suggest that the presence of cerium and silver dopants in the TiO2 matrix did enhance the photocatalytic properties to some extent, particularly in the case of B2Ce1Ag0.1TiO2, which had a higher concentration of cerium, known to facilitate better charge separation and reduce electron-hole recombination. This enhancement is crucial for photocatalytic processes, as it allows for the generation of reactive species that can effectively degrade organic pollutants like ampicillin. The study highlights the importance of optimizing dopant concentrations and understanding the mechanisms behind photocatalytic activity, as the varying performances of the ternary-doped catalysts indicate that while doping can improve photocatalytic efficiency, the specific ratios and interactions between the dopants and the Titanium dioxide matrix are critical for achieving optimal results. Overall, the findings underscore the potential of using sunlight-driven photocatalysis as a sustainable approach to mitigate the environmental impact of pharmaceutical pollutants, with TiO2 emerging as a highly effective photocatalyst for the degradation of ampicillin, while the ternary-doped catalysts, despite their lower performance, still offer insights into the development of advanced photocatalytic materials for wastewater treatment applications. The results also suggest that further research is needed to explore additional modifications and optimizations of the photocatalysts to enhance their performance, particularly under real-world conditions where varying light intensities and pollutant concentrations may affect degradation efficiency. By continuing to refine these materials and understanding their degradation mechanisms, it may be possible to develop more effective solutions for addressing the challenges posed by pharmaceutical contaminants in the environment, ultimately contributing to improved water quality and reduced risks associated with antimicrobial resistance. This study successfully investigated the solar light-driven photocatalytic degradation of ampicillin using various synthesized photocatalysts, specifically B-TiO2, Ag-TiO2, and Ce-TiO2. The photocatalysts were synthesized using the EDTA-citrate method, which resulted in nanoscale particle sizes and a surface area of approximately 25 m²/g. These characteristics are crucial for enhancing photocatalytic activity, as they provide a larger surface area for light absorption and pollutant interaction. X-ray diffraction (XRD) analysis confirmed the presence of cerium on the surface of TiO2, attributed to cerium's larger ionic radius, which prevents it from fully integrating into the TiO2 lattice. The absence of prominent boron peaks in the XRD patterns indicates a uniform dispersion of boron within the TiO2 matrix, suggesting effective doping. The bandgap values obtained from diffuse reflectance spectroscopy (DRS) ranged from 2.4 to 2.7 eV, indicating the introduction of new energy levels that facilitate effective charge separation and reduce electron-hole recombination. This is a critical factor in enhancing photocatalytic efficiency.