* Gravity's Role: Gravity acts as the catalyst, drawing together vast clouds of gas and dust (primarily hydrogen and helium) in space, known as nebulae. As these clouds collapse, their density increases, and the particles within them collide more frequently.
* Heat Generation: The collisions generate heat. As the cloud continues to collapse, the core becomes incredibly hot and dense.
* Nuclear Fusion: Eventually, the core reaches a temperature and pressure sufficient to initiate nuclear fusion. This is the process where hydrogen atoms fuse to form helium, releasing tremendous amounts of energy. This energy outward pressure counteracts gravity's inward pull, creating a stable star.
In short, gravity is the "glue" that pulls the material together, while nuclear fusion is the "fire" that keeps the star burning.