Rocks and ice mostly. As sediment turns into rock and snowfall gets packed into ice, some of the air that’s around gets trapped. As more rock and ice gets formed on top it stays trapped in there. Scientists then dig up large core samples where they drill out long cylinders of material, and they can see all of the layers that form year after year. Then they can check how much CO2 was trapped in each layer over time.
Latest Answers