Molten or partially molten rock from which igneous rock s form, usually consisting of silicate liquid.
Magma migrates either at depth or to the Earth's surface, where it is ejected as lava . The interactions of several physical properties, including chemical composition, viscosity, content of dissolved gases, and temperature, determine the characteristics of magma. Numerous events that can occur during crystallization influence the resulting rock: separation of early crystals from liquid prevents reaction between them; magma can cool too rapidly for reaction to occur; and loss of volatiles may remove some components from the magma.