What is the difference between Magma and Lava?

Magma is the molten or semi-molten rock beneath the Earth's surface, while lava is the molten rock that erupts onto the Earth's surface during a volcanic eruption. Magma becomes lava once it reaches the Earth's surface and begins to cool and solidify.