The aim of this study is to highlight the significance of ciprofloxacin degradation, a commonly used antibiotic in healthcare and agriculture, by synthesizing tannin-doped BaTiO3 (T-Ba) photocatalysts at various tannin amounts (0–50 wt%) and investigating their photocatalytic activity under both UV-A light and visible light irradiation. The impact of several parameters, including the initial concentration of ciprofloxacin, photocatalyst dosage, initial solution pH, and scavengers effect, on the photocatalytic activity was explored. The photocatalysts were characterized by FTIR, SEM, XRD, XPS, TEM, BET, PL and UV-DRS analysis. In the conducted studies, it was observed that the highest efficiency was achieved at 96 % under appropriate parameters. The kinetic study was conducted based on the Langmuir-Hinshelwood equations. According to stability tests, ciprofloxacin degradation was found as 92 % after the second cycle, while it was 50 % after the fifth cycle.