Through immense amounts of heat that come from the phase of mountain building, it will cause the amount of heat and pressure that will cause the rocks to go through the rock cycle of bending, folding, crushing, flattening, and shearing to become a metamorphic rock. Metamorphic rocks through all the compact pressure and heat will become way harder than that of a sedimentary rock which will indicate that of a metamorphic rock.
Hope this helps!