Study of the origin, composition, and formation of igneous rocks that arise from the cooling and solidification of magma.