What happened underground to cause the christchurch earthquakes?

The quake was caused by the collision of the Pacific and Australian techtonic plates.