hello!
Volcanoes often form in the areas where tectonic plates make contact. The friction created between two plates by the constant movement melts the Earth's crust, causing the rock underneath the crust to turn into magma due to the great temperatures created by friction.
have a goed day