How do plate movements relate to volcanoes and earthquakes?

As the crust moves it shakes the Earths crust, which causes Earthquakes. It relates to volcanos because of ocean floor spreading.