The movement of nutrients and other elements through the environment, including carbon, nitrogen, and phosphorus.