The processes that lead to the formation of a volcano, including subduction, hotspots, and rift zones.