Stars form from massive clouds of gas and dust in a process called stellar formation. These clouds, known as molecular clouds or nebulae, collapse under their own gravity. As the cloud contracts, it fragments into smaller clumps that eventually form protostars. Protostars continue to collapse and heat up until they reach temperatures and pressures high enough to initiate nuclear fusion in their cores.