Rocks that are subject to great heat and pressure over long periods of time are transformed into

sedimentary rocks
igneous rocks
metamorphic rocks
magma