Photo courtesy of

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

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

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

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.