When the released energy reaches the outer layers of the ball of gas and dust, it moves off into space in the form of electromagnetic radiation. The ball, now a star, begins to shine. ... Throughout their lives, stars fight the inward pull of the force of gravity.