Earthquakes occur most commonly along plate boundaries. When plates rub against or compress on one another, rock breaks beneath the surface of Earth, releasing energy and causing the Earth's crust to move and shake.