Explain how tectonic plate motion is related to earthquakes?

most of the earthquakes happen along the tectonic plates