An extremely coarse-grained igneous rock with interlocking crystals, usually with a bulk chemical composition similar to granite but commonly containing rare minerals enriched in lithium, boron, fluorine, niobium, and other scarce metals. Pegmatites are also the source for many gem-quality precious and semiprecious stones