There are no immediate reports of damage or injuries.
The US Geological Survey said it struck 87 miles south-west of Nazca at 11.43am local time (1643 GMT) at a depth of 21 miles.
The quake was mildly felt in Lima, 310 miles from its epicentre.
COMMENT RULES: Comments that are judged to be defamatory, abusive or in bad taste are not acceptable and contributors who consistently fall below certain criteria will be permanently blacklisted. The moderator will not enter into debate with individual contributors and the moderator’s decision is final. It is Belfast Telegraph policy to close comments on court cases, tribunals and active legal investigations. We may also close comments on articles which are being targeted for abuse. Problems with commenting? firstname.lastname@example.org