The study of the chemical behavior of elements and compounds in natural systems, including soils, water, and air.