Large regions of ionised hydrogen gas are produced by star-forming regions. Nebulae are often star-forming regions, such as in the Orion complex. In these regions gravitation pulls together gas and dust. Material clumps together to form larger masses, which attract further matter. Eventually this become massive enough to form stars. The material left over may form planets and other planetary system objects.