Design of green and low-cost single-atom catalysts (SACs) with high-performance is key to moving photocatalytic degradation of antibiotics toward applications. In order to achieve SACs for large-scale manufacturing, we prepared ultrathin flake carbon nitride (FCN) by low-energy-consuming physical knockout means, and also applied an in situ growth strategy with stable and easy-operating effect to anchor the Ru element on FCN in the form of single atom. Notably, in the PMS/Vis/0.5Ru-FCN system, the degradation rate of tetracycline achieved 100 % in just five minutes, with an apparent rate constant of 0.236 min−1. Ru-FCN exhibits selective and stable determination due to narrow bandgap, unique photoresponsivity and low photogenerated carrier complexation rate. Mechanism investigation reveal that Ru-N4 sites accelerated the electron transfer between Ru-FCN and PMS, while the low oxidation state of Ru elements reduced the risk for metal corrosion. DFT calculations predict the attack sites of reactive oxygen species. This work provides a rational explanation for the charge transfer and resistance to external disturbance by Ru single atom, and it also provides a new direction to enhance the efficiency of water treatment.