Earthquakes are caused by the sudden release of energy due to tectonic movements within the Earth’s crust, often at plate boundaries.