On Earth, a volcano forms when melted rock pushes out of Earth’s crust because the pressure inside becomes too great to contain it. Volcanoes can release gases, rocks, ash, and/or lava when they erupt.