Inside the earth's core there is a red-hot liquid rock, called magma.
Volcanoes happen when magma rises to the surface of the earth, which causes bubbles of gas to appear in it.
This gas can cause pressure to build up in the mountain, and it eventually explodes. When the magma bursts out of the earth, it is called lava.