Erosion breaks down igneous and metamorphic rock that settle and become sedimentary rock. Igneous and sedimentary rock are turned into metamorphic rock with heat and pressure. Finally lava surfaces and melts the other two types and cool down to become igneous rock. In very scientific words, it part of the bio-geo chemical cycles that stores phosphorus both long term and short term.