Sometimes the formation of stars can be triggered (known as triggered star formation) by disturbances in the gas clouds. Such disturbances could be a shock wave from the explosion of a nearby massive star at its death, or the passage of the cloud through regions of more intense gravity as found in the spiral arms of spiral galaxies. This compress the gas clouds enough to cause gravitationally collapse.