Energy from the sun flows through ecosystems, while chemicals repeatedly cycle from the physical environment through living organisms and back into the environment.