There are three main biogeochemical cycles - the hydrologic, gaseous, and sedimentary cycles. The sedimentary cycle involves mineral elements being obtained initially from inorganic sources in the soil and occurring as dissolved salts. The phosphorus cycle begins with phosphorus contained in sedimentary rocks in the form of apatite, which weathers into the soil where plants uptake it. Phosphorus then moves through the food chain and sometimes aquatic systems before settling in sediments or being lost to leaching. The sulfur cycle involves sulfur being found in rocks underground and ocean sediments, moving between organic and inorganic forms through microbial processes, and cycling through the lithosphere, hydrosphere and biosphere.