Gneiss is formed when existing rocks (igneous, sedimentary, or even other metamorphic rocks) are subjected to intense heat and pressure deep within the Earth's crust. This process changes the original mineral composition and texture of the rock, giving gneiss its distinctive banded appearance.