Crystals themselves are not classified as igneous rocks, but they can be a component of igneous rocks. Igneous rocks form from the solidification of molten material called magma or lava. During the cooling process of this molten material, crystals can form as minerals crystallize out of the melt.
For example, granite is an igneous rock that contains several types of crystals, such as quartz, feldspar, and mica. These crystals are the result of the cooling and solidification of the magma from which the granite formed. In summary, while crystals can be found in igneous rocks, they are not igneous rocks themselves.