Images broadcasted on local television showed people walking with water up to their knees in the city of Pisco, in southern Peru. Vehicles were also trapped in the flooded streets.
Despite many coastal towns such as Barranca and Paracas evacuated bathers from the beaches as a safety precaution, the Peruvian Tsunami Warning Centre has said the event did "not generate a tsunami on the Peruvian coast".
"The ports are definitely being closed as a precaution for the vessels. The closing of the ports means we raised red flags, that indicates that bathers must not enter (the sea)," said the Captain of the Supe del Barranco Port, Miguel Navarro.