Somewhere between 100 and 200 million years after the Big Bang, gas inside these clumps became dense and hot enough to ignite nuclear fusion, and the first stars were born. They were probably enormous, many times more massive than the Sun, and they used up their fuel in just a few million years. Many of them ended their lives as supernovae. In their cores and in these explosions, they forged heavier elements such as carbon, oxygen and iron, and scattered them into space.
Stars gathered into the first galaxies, which grew by pulling in gas and merging with their neighbours. The James Webb Space Telescope, launched in 2021, has observed galaxies that existed less than 300 million years after the Big Bang. Some of them are brighter and more developed than most astronomers expected. Over billions of years, small galaxies combined into larger ones. Our own galaxy, the Milky Way, contains stars more than 12 billion years old. Each generation of stars that lived and died added more heavy elements to the gas around them, so later stars formed from richer material.
About 4.6 billion years ago, in one of the Milky Way’s spiral arms, a cloud of gas and dust collapsed under its own gravity. The collapse may have been triggered by the shock wave from a nearby supernova. Most of the material fell inwards and became the Sun. The rest flattened into a spinning disc. Inside this disc, grains of dust collided and stuck together, forming pebbles, then rocks, then bodies several kilometres across. Through a process called accretion, these bodies gradually coalesced into planets.
Earth formed around 4.5 billion years ago. Early in its history it was largely molten, and it was constantly struck by debris left over from the formation of the Solar System. According to the leading theory, a body roughly the size of Mars crashed into the young Earth, and the material thrown out by the impact came together to form the Moon. Over time the surface cooled, a solid crust formed, and water collected in the first oceans.
Almost every atom of iron in your blood and calcium in your bones was made inside stars that died long before the Sun existed. The hydrogen in the water you drink is even older. It dates back to those first few minutes.