Molecular clouds contain abundant hydrogen and helium and can become dense enough to collapse under gravity. The collapse forms a rotating gas disk and fragments into cores that further collapse to form protostars. Protostars heat up and stabilize as new stars once hydrogen fusion counters gravitational pressure to form a long-lasting star. The star is then surrounded by a proto-planetary disk that may form planets, completing the process from molecular cloud to star system.