Formation and evolution of the Solar System
Gravity caused the atoms in the Sun to become very close to each other. All this energy eventually made our Sun into a star. It gets its energy from changing its hydrogen into helium. That process is still in its early stages.