The Earth’s outer layer (crust) is made up of huge tectonic plates (large slabs of Earth) which move at about the rate at which you finger nails grow. When two plates collide the magma (rock and gas) just under the Earth’s surface is pushed up, causing the volcanic eruption we see on the surface.
The collision of these tectonic plates also cause Earth quakes and tsunamis.
Hope that helps, if you are still unsure or if there are any more questions please feel free to ask
Comments