There’s a long gap between the origin of the universe, the first stars, and early galaxies, and the origin of our Solar System and our planet Earth. If we were using a linear scale for our calendar, the Solar System would get started in September. Even on our logarithmic scale, Sun and Earth wait until late January. A spiral galaxy like the Milky Way is an efficient machine for turning dust into stars over many billions of years. But the earliest stars it produces are poor in “metals” (anything heavier than helium). It takes generations of exploding stars producing heavier elements and ejecting them into space before a star like the Sun — 2% metal – can form.
Alchemists thought they could change one element into another – lead into gold, say. But it takes more extreme conditions than in any chemistry lab to transmute elements. The heart of a star makes heavy elements out of hydrogen and helium; it takes a supernova to make elements heavier than iron. So it’s literally true, not just hippy poetry, that “we are stardust” (at least the part of us that isn’t hydrogen).