NASA
Stars produce light and energy in their cores through the process of nuclear fusion. Through nuclear fusion, small hydrogen atoms combine to create helium, helium combines to create carbon, and then atoms of larger elements. Throughout their life cycles, stars consume all of their hydrogen. Scientists theorize that in billions of years, the Sun will eventually become larger and cooler as time progresses, until it becomes a dwarf star.