Stars primarily form from gas and dust in space within interstellar clouds or nebulae. These clouds are vast regions of space that consist of gas (mostly hydrogen and helium) and dust particles. The gravitational forces within these clouds cause them to condense and clump together, forming denser regions called molecular clouds.