The processes by which minerals change under high pressure and temperature to form metamorphic rocks.