Photo+courtesy+of++latintimes.com

Photo courtesy of latintimes.com

A mighty 8.2-magnitude earthquake struck off the coast of northern Chile on Tuesday, killing five and triggering a tsunami, according to CNN.com.

It struck at about 8:46 p.m., about 60 miles northwest of Iquique, reported CNN. About 2,500 homes were damaged in Alto Hospicio, a city in the hills above Iquique. The quake led to a mandatory evacuation of Alto Hospicio, prior to a tsunami, according to washingtonpost.com.

The tsunami only reached eight feet hitting Chile’s coast, but spread across the Pacific ocean for 30 hours, according to wired.com.

Strict building codes helped save lives in the quake, according to CNN. Chile, being an earthquake country, has evacuation plans and building codes prepared for the event of a quake.