Ecosystems are governed by physical laws of energy flow and matter cycling. Energy and nutrients cycle through abiotic and biotic components of ecosystems via producers, consumers, and decomposers. Human activities have disrupted nutrient cycling and increased toxins, greenhouse gases, acid precipitation and global warming, depleting the ozone layer and threatening ecosystem function.