Earthquakes are primarily caused by the movement of tectonic plates beneath the Earth's surface. When these plates shift or collide, it can result in seismic activity. Volcanic eruptions, on the other hand, are caused by the release of magma from within the Earth's mantle. The build-up of pressure beneath the surface can lead to volcanic activity and eruptions.