An earthquake is the shaking of the Earth, which occurs due to the release of energy that generates waves traveling in all directions.
The quick release of energy creates seismic waves that travel through the Earth, causing the ground to shake.
Earthquakes can also cause other hazardous events like landslides and tsunamis.