Magma
is
called
lava
when
it
reaches
the
surface
of
the
Earth.