Scientists have shown that Earth’s basic chemistry solidified within just three million years of the Solar System’s formation. Initially, the planet was barren and inhospitable, missing water and carbon compounds. A colossal collision with Theia likely changed everything, bringing the essential ingredients for life. The study highlights that habitability may hinge on rare chance events.