Here's a breakdown:
* Divergent Plate Boundaries: Where plates move apart, magma rises from the mantle to fill the gap, creating volcanic rifts and mid-ocean ridges. This is the primary source of volcanic activity in the ocean.
* Convergent Plate Boundaries: Where plates collide, one plate often subducts (sinks) beneath the other. This process melts the subducting plate, generating magma that rises to the surface, forming volcanic arcs. Examples include the Andes Mountains and the Pacific Ring of Fire.
* Hotspots: These are areas of volcanic activity that are not located at plate boundaries. They are thought to be caused by plumes of hot mantle material rising from deep within the Earth. Examples include the Hawaiian Islands and Yellowstone National Park.
In summary, volcanic activity is concentrated in areas where tectonic plates interact, either by moving apart, colliding, or where hot mantle plumes rise to the surface.