Rocks contain phosphate. Harsh weather conditions break down rocks, releasing phosphate into the soil.
Some phosphate is absorbed by plants to make phosphate-containing compounds like ATP.
Plants are eaten by animals, which can then make their own phosphate-containing compounds.
Both plants and animals die, and animals also excrete.
The waste of animals and plants is broken down by saprobionts, releasing phosphate back into the soil.
Some phosphate moves throughout the soil to bodies of water, like the sea.
Over thousands of years, phosphate is used to form new rocks.