Here's a breakdown:
* Earthquakes are caused by the sudden release of energy in the Earth's crust, creating seismic waves that travel through the Earth and cause the ground to shake.
* This movement of rock is often associated with fault lines, which are fractures in the Earth's crust where tectonic plates meet.
* When these plates move past each other, they can cause the rocks along the fault line to break and slip, releasing energy as seismic waves.
So, while the movement of rock beneath the Earth's surface is the *cause* of an earthquake, the shaking itself is the result of the seismic waves generated by that movement.