Which is needed to turn an igneous rock or sedimentary rock into a metaphoric rock?

Heat and pressure are needed to turn an igneous rock or sedimentary rock into a metamorphic rock.