Volcanic eruptions occur when hot molten rock (magma) rises from below the Earth's surface and reaches the vent of a volcano. The type of eruption depends on the viscosity and gas content of the magma. Explosive eruptions are driven by gas and eject ash and rock high into the air, while effusive eruptions allow lava to flow slowly. Major hazards of explosive eruptions include pyroclastic flows, surges and falls, which can travel long distances and bury or burn everything in their path. To monitor and mitigate volcanic risks, observatories measure seismic activity, ground deformation and gas emissions to help forecast eruptions and issue warnings.