In geology, rock or stone is a naturally occurring solid aggregate of minerals and/or mineraloids.The Earth's outer solid layer, the lithosphere, is made of rock. In general rocks are of three types, namely, igneous, sedimentary, and metamorphic...
In planetary science, volatiles are that group of chemical elements and chemical compounds with low boiling points that are associated with a planet's or moon's crust and/or atmosphere. Examples include nitrogen, water, carbon dioxide, ammonia, hydrogen, and methane, all compounds of C, H, O...
and solids that is found beneath the surface of the Earth
Earth is the third planet from the Sun, and the densest and fifth-largest of the eight planets in the Solar System. It is also the largest of the Solar System's four terrestrial planets...
, and is expected to exist on other terrestrial planets. Besides molten rock, magma may also contain suspended crystals and dissolved gas and sometimes also gas bubbles. Magma often collects in magma chamber
A magma chamber is a large underground pool of molten rock found beneath the surface of the Earth. The molten rock in such a chamber is under great pressure, and given enough time, that pressure can gradually fracture the rock around it creating outlets for the magma...
s that may feed a volcano
2. Bedrock3. Conduit 4. Base5. Sill6. Dike7. Layers of ash emitted by the volcano8. Flank| 9. Layers of lava emitted by the volcano10. Throat11. Parasitic cone12. Lava flow13. Vent14. Crater15...
or turn into a pluton
A pluton in geology is a body of intrusive igneous rock that crystallized from magma slowly cooling below the surface of the Earth. Plutons include batholiths, dikes, sills, laccoliths, lopoliths, and other igneous bodies...
. Magma is capable of intrusion into adjacent rocks, extrusion onto the surface as lava
Lava refers both to molten rock expelled by a volcano during an eruption and the resulting rock after solidification and cooling. This molten rock is formed in the interior of some planets, including Earth, and some of their satellites. When first erupted from a volcanic vent, lava is a liquid at...
, and explosive ejection as tephra
200px|thumb|right|Tephra horizons in south-central [[Iceland]]. The thick and light coloured layer at center of the photo is [[rhyolitic]] tephra from [[Hekla]]....
to form pyroclastic rock
Pyroclastic rocks or pyroclastics are clastic rocks composed solely or primarily of volcanic materials. Where the volcanic material has been transported and reworked through mechanical action, such as by wind or water, these rocks are termed volcaniclastic...
Magma is a complex high-temperature fluid substance.