Earthquakes occur at plate margins, as the plates move past each other at the margins the movement is not smooth. The plates sometimes lock causing pressure to build up, the pressure is released in a jerky movement. This release of pressure is called an earthquake