Any of various crystalline or glassy rocks formed by the cooling and solidification of magma or other molten earth material. Igneous rocks comprise one of the three principal classes of rocks, the others being metamorphic and sedimentary.