Gravity caused the atoms in the Sun to become very close to each other. All this energy eventually made our star: the Sun. The leftover gas mostly went to the gas giants—also known as Jovian planets. 