In stars, hydrogen atoms fuse together to make helium. Once the star runs out of hydrogen, the helium atoms fuse together to make carbon. Eventually, stars use all their
energy and die. Sometimes the huge stars will explode. The star stuff spews out into space. When conditions are just right, gravity helps pull this space stuff to form
new planets.