A. Volcanoes erupt when magma (molten rock) rises to the surface and is released through a vent or fissure. The eruption can be explosive or effusive, depending on the type of volcano and the viscosity of the magma.