Over time, gravity pulls the hydrogen gas in the nebula together and it begins to spin. As the gas spins faster, it heats up and is known as a protostar. Eventually the temperature reaches 15,000,000 °C and nuclear fusion occurs in the cloud's core.