The main agent that calls metamorphic rocks to form our Is it nailing and cooling heat and pressure, deposition, and compaction, or weathering and erosion?

The main agents that cause metamorphic rocks to form are heat and pressure. Deposition and compaction are processes that generally occur in the formation of sedimentary rocks, while weathering and erosion are involved in the breakdown and transportation of rocks, but not in the formation of metamorphic rocks.