Some, but not all, earthquakes are related to volcanoes. For example, most earthquakes are along the edges of tectonic plates. This is where most volcanoes are too. However, most earthquakes are caused by the interaction of the plates not the movement of magma .