Granite is an igneous rock formed from magma that intrudes into the Earth's crust. It is classified based on the percentages of quartz, alkali feldspar, and plagioclase feldspar. True granite contains both plagioclase and alkali feldspars. Chemically, granite is composed largely of silica, alumina, potassium, and sodium. Granite occurs globally in continental crust and forms much of the basement rock beneath sedimentary layers.