Sorry Mohammed, your question is very general (non-specific). Heat and pressure causes most of the metamorphism in rock. Great heat like volcanic heat, or the earth's core of molten iron and pressure from great weight, continental/tectonic plate weight. Combinations of heat and weight combine with minerals to make Gems and other valuable materials from rock and other elements and compounds. Sorry, if that is too general of an answer.