One-step synthesis of pure TiO2 and CQDs/TiO2 composite were proposed via a sol-gel approach. It is the first time to degrade and remove cefradine in water by CQDs/TiO2 nanocomposite. It provides further insights into the photocatalytic application of CQDs/TiO2 nanocomposite.