A molecular cloud is a kind of cloud in space . It has enough density and size so that molecules can form , usually molecules of hydrogen ( H2 ) . A molecular cloud , sometimes called a stellar nursery if star formation is occurring within , is a type of interstellar cloud whose density and size permits the formation of molecules , most commonly molecular hydrogen ( H2 ) .