Over long time scales, oceanic crust containing limestone sediments is forced downward into Earth's mantle at points where plates collide, a process called subduction. Eventually, the limestone heats up and turns the limestone back into CO2, which travels back up to the surface with magma. Volcanic activity then returns CO2 to the atmosphere.