Stars have a lot of hydrogen. Nuclear fusion changes hydrogen into helium. Fusion makes a lot of energy. The energy makes the star very hot. The energy produced by stars moves (radiates) away from them. Much of the energy leaves as light. The rest leaves as other kinds of electromagnetic radiation.