The origin of elements began with the Big Bang, which formed the lightest elements like hydrogen, helium, and lithium through nuclear fusion in the early hot dense universe. As the universe expanded and cooled, the first stars and galaxies formed, allowing nuclear fusion to produce heavier elements up to iron inside stars. When massive stars collapsed in supernova explosions, even heavier elements were formed through further fusion and neutron capture processes. This cycling of matter between generations of stars through nuclear reactions is how all the chemical elements from carbon to uranium came to exist in the present universe.