Earthquakes are caused by the movement of tectonic plates, which are large pieces of the Earth's lithosphere that fit together like a puzzle. These plates move on top of the Earth's softer, more fluid mantle, which allows them to slide and grind against each other.