More than 2.4 billion years ago, Earth’s atmosphere was inhospitable, filled with toxic gases that drove wildly fluctuating surface temperatures. Understanding how today’s world of mild climates and breathable air took shape is a fundamental question in Earth science.