According to the U.S. Department of the Interior, an earthquake is caused by a sudden slip on a fault line. The tectonic plates on the fault lines are always slowly moving, but they get stuck at their edges due to friction. When the stress on the edge overcomes the friction, there is an earthquake that releases energy in waves that travel through the earth's crust and cause the shaking and structural damage that is felt on the surface.