Carbon is an essential element that cycles between the atmosphere, ocean, organisms, and geologic reservoirs as part of the carbon cycle. Photosynthesis incorporates carbon from the air and water into organic compounds, while respiration and decomposition release it back. Fossil fuels like coal and oil were formed from ancient plant and algae remains over millions of years. Burning fossil fuels returns carbon to the air, and limestone erosion also adds carbon back to the cycle through weathering. The carbon cycle continuously moves carbon between the biosphere and geosphere.