Both are types of rocks formed<span> as a </span>result<span> of the </span>rock<span> cycle. Both types of </span>rock<span> can </span>form<span> from the other. They differ in the way they </span>form<span>. Metamorphic </span>rocks form<span> due to immense heat and pressure underground, while sedimentary </span>rocks<span> from from compaction and cementation of sediments.</span>