How the earth's atmosphere evolved
1. Volcanic activity produced CO2, water vapor, nitrogen, methane, ammonia
2. Water vapor condensed into oceans, allowing CO2 to dissolve
3. Algae and plants evolved, using CO2 for photosynthesis and producing O2
4. Organic matter from dead algae/plants became buried and formed sedimentary rocks, oil, and gas