Magma, as liquid, preferentially forms in high temperature, low pressure environments within several kilometers of the Earth's surface. Magma compositions may evolve after formation by fractional crystallization, contamination, and magma mixing. By definition rock formed of solidified magma is called igneous rock.