Many nebula are actually the star forming areas of our universe. This is because they are areas of large amounts of gas and dust, which when pulled together by gravity, end up forming a protostar. When the heat gets to a high enough temperature, then a star is formed.