How does a Earthquake Happen?

There are two ways in which earthquakes happen. The first one is due to volcanic activity, the second is when the Earth’s plates move into each other and release huge amounts of energy, which is emitted as seismic waves.