Metamorphic rocks can be formed by pressure deep under the Earth's surface, from the extreme heat caused by magma or by the intense collisions and friction of tectonic plates. Uplift and erosion help bring metamorphic rock to the Earth's surface.