The process by which materials necessary for organisms are circulated through the environment.