Pathway by which a chemical element or molecule moves through both biotic and abiotic compartments of Earth.