A magnitude 6.3 earthquake struck 78 miles (125 km) west of Piura, Peru, on Monday at a depth of 7 miles, U.S. Geological Survey data showed.