How does an earthquake move?

An earthquake moves due to the plates under the Earth's crust moving