Quartzite is a nonfoliated metamorphic rock composed almost entirely of quartz. It forms when a quartz-rich sandstone is altered by the heat, pressure, and chemical activity of metamorphism. Metamorphism recrystallizes the sand grains and the silica cement that binds them together.