An earthquake of magnitude 7.5 struck northern Peru about 40 km (25 miles) from the town of Barranca early on Sunday, the US Geological Survey said.
There were no immediate reports of injury or damage from the quake, which was felt as far away as the capital, Lima.
The quake struck at a depth of more than 100 km (60 miles), limiting the shaking level.
The Euro-Mediterranean Seismological Centre said in a tweet the quake occurred in a very sparsely populated region of the Amazon rainforest.
The US Tsunami Warning System said there was no tsunami warning after the quake.