The tsunami that struck Thailand in 2004 was caused by an earthquake beneath a nearby oceanic trench.