When living organisms die, their bodies decay and release carbon into the atmosphere. Over time, this carbon can be converted into carbonates and stored in rocks through the process of chemical weathering or through the sedimentation of organic material.