When a volcano erupts, the molten rock (or magma) that comes out of the Earth is called lava. Because lava is so hot (more than 1,100 degrees C, over 2,000 degrees F), it remains molten and flows across the ground until it cools and hardens into rock.
hope this helps