The calcium cycle is a transfer of calcium between dissolved and solid phases. There is a continuous supply of calcium ions into waterways from rocks, organisms, and soils. Calcium ions are consumed and removed from aqueous environments as they react to form insoluble structures such as calcium carbonate and calcium silicate, which can deposit to form sediments or the exoskeletons of organisms. Calcium ions can also be utilized biologically, as calcium is essential to biological functions such as the production of bones and teeth or cellular function. The calcium cycle is a common thread between terrestrial, marine, geological, and biological processes. Calcium moves through these different media as it cycles throughout the Earth. The marine calcium cycle is affected by changing atmospheric carbon dioxide due to ocean acidification.