Rocks formed by the solidification of magma. The mineral composition and the grain size of igneous rocks is used as the basis for defining specific rock types.