The chemical reactions and pathways involving atrazine, a triazine ring-containing compound, widely used as a herbicide.