When the Earth moves
Earthquakes are caused by the motion of tectonic plates - individual sections that make up the Earth's surface like panels on a football. Immense strain accumulates along fault lines where adjacent plates meet. When the rock separating the plates give way, sudden seismic ground-shaking movement occurs.
Of course, if we want to know why earthquakes happen, we need to dig a little deeper.