Eventually gravity compressed the hydrogen so much that the temperature reached about ... The Sun is expected to be a main sequence star for billions of years.
leading to a state of equilibrium between gravitational collapse and the energy released during fusion Key fact In a main sequence star, hydrogen nuclei fuse together to form helium nuclei.