Metamorphic rocks are formed when rock is heated up by the intrusion of hot molten rock called magma from the Earth's interior.