An earthquake happens the sides of a fault line in the earth's surface slip past each other and the surface ruptures. There have been around 50 to 100 smaller earthquakes along the fault line in recent weeks and a 6.7 and a 6.1 magnitude earthquake struck late last month.