Earthquakes are primarily caused by the movement of tectonic plates in the Earth's crust. When these plates shift, collide, or slide past each other, it can result in seismic activity. Other factors that can contribute to earthquakes include volcanic activity, human activities such as mining or reservoir-induced seismicity, and even the collapse of underground caverns.