what is melted rock (magma) called when it reaches the earth's surface
Magma Magma (from Ancient Greek μάγμα (mágma) meaning "thick unguent") is a mixture of molten or semi-molten rock, volatiles and solids[1] that is found beneath the surface of the Earth, and is expected to exist on other terrestrial planets and some natural satellites. Besides molten rock, magma may also contain suspended crystals, dissolved gas and sometimes gas bubbles. Magma often collects in magma chambers that may feed a volcano or solidify underground to form an intrusion. Magma is capable of intruding into adjacent rocks (forming igneous dikes and sills), extrusion onto the surface as lava, and explosive ejection as tephra, or fragmented rock, to form pyroclastic rock.
Crust (geology) The crust of the Earth is composed of a great variety of igneous, metamorphic, and sedimentary rocks. The crust is underlain by the mantle. The upper part of the mantle is composed mostly of peridotite, a rock denser than rocks common in the overlying crust. The boundary between the crust and mantle is conventionally placed at the Mohorovičić discontinuity, a boundary defined by a contrast in seismic velocity. The crust occupies less than 1% of Earth's volume.[1]