Stars are enormous balls of glowing gases that emit their own light and heat. They are composed primarily of hydrogen and helium, and they generate energy through nuclear fusion reactions in their cores. The light emitted by stars comes from these fusion reactions, and it travels through space in the form of electromagnetic waves.