Earthquakes happen due to the movement of tectonic plates, which are large sections of the Earth's crust that float on the semi-fluid mantle layer below. The Earth's crust is divided into several tectonic plates, and these plates are constantly moving, albeit very slowly.