The formation of the universe began with the Big Bang around 12 billion years ago, leading to the creation of the simplest elements: hydrogen, helium, and lithium. The matter was not uniformly distributed, which eventually caused the formation of galaxies, stars, and larger celestial bodies.