The chemical reactions and pathways involving cyanuric acid, a suspected gastrointestinal or liver toxicant, and a potential degradation product of triazine herbicides, such as atrazine and simazine. It is widely used for the stabilization of availab.