Energy from their hot center(core) .
A star is an iridescent chunk of gas, generally hydrogen and helium, held together by its own gravity. Nuclear combination reactions happening at in its center help the star against gravity and create photons and heat.