Why do volcanoes erupt?

Melted rock called magma rises, pressure builds, and gas blasts it out as lava and ash.