Meaning

Magma is the molten material beneath the surface; when it emerges, it is called lava. The distinction is not merely terminological, because decompression and gas loss modify its behaviour.

Reference source

Geología de las Islas Canarias. Construcción y evolución del paisaje