# Formation of stars

How are stars formed? I read somewhere that when dust, gas, rocks etc come close to each other due to gravity, slowly and gradually build up a lot of pressure and form stars. If what I read is right, then from where did these materials come from?

-