A volcano is an opening in Earth's surface where hot melted rock, gases and ash escape from deep below. Although volcanoes can seem wild and random, scientists know a great deal about where they form and why they erupt.
Earth's outer layer is broken into huge slabs called plates, which move very slowly, about as fast as a fingernail grows. Most volcanoes form where two plates meet. In some places one plate slides beneath another, and the heat deep down melts rock into a thick liquid called magma.
Magma is lighter than the solid rock around it, so it rises. It collects in a chamber under the ground. As more magma gathers, pressure builds, much like the fizz in a shaken bottle. When the pressure becomes too great, the magma bursts out through a crack. Once it reaches the surface, it is called lava.
Not every eruption looks the same. Some volcanoes release thin, runny lava that flows gently for miles. Others release thick lava that traps gas and explodes, throwing ash high into the sky.
Over time, lava cools and hardens into new rock, and layer after layer builds a mountain. Some volcanoes even rise from the ocean floor until they form islands. The Hawaiian Islands grew in this way.
Volcanoes can be dangerous, but they also help the land. Volcanic ash breaks down into rich soil, which is why farmers often plant crops near old volcanoes.