Volcanos erupt because of density and pressure. The lower density of the magma relative to the surrounding rocks causes it to rise. As the magma rises, bubbles start to form from the gas dissolved in the magma. The gas bubbles exert tremendous pressure. This pressure helps bring the magma to the surface and forces it into the air.