 Pareja was sent to the Pacific in 1864 to relieve Admiral Luis Hernández-Pinzón Álvarez, whose seizure of the Chincha Islands was disapproved in Madrid.On January 27, 1865, he signed the Vivanco-Pareja Treaty which was considered derogatory to Peruvian national honor.A general uprising followed in Peru and the government of General Juan Antonio Pezet fell on July 7, 1865.