José María Velasco Ibarra nullified the Rio de Janeiro Protocol, which led to conflicts between Ecuador and Peru, including Paquisha in 1981 and the War of El Cenepa in 1995. Finally, in 1968 Velasco Ibarra won the presidency for a fifth time. This government ended abruptly on February 15, 1972, when once more he was deposed in a bloodless coup, which brought General Guillermo Rodríguez Lara to power. In total, Velasco Ibarra governed nearly 13 years, making him the longest-serving president in Ecuadorian history (although Rafael Correa's decade-long presidency from 2007 until 2017 is the longest continuous presidency). The events surrounding the end of
Juan Bautista Alvarado Frémont arrived in Monterey at the beginning of 1846. Afraid of foreign aggression, Castro assembled his militia, with Alvarado second in command, but Frémont went north to Oregon instead. An unstable political situation in Mexico strained relations among the Californios and it seemed that civil war would break out between north and south. On July 7, Commodore John D. Sloat occupied Monterey, declaring to the citizenry that the Mexican–American War had begun. Pico, Castro, and Alvarado set aside their differences to focus on the American threat, but by the end of August, Pico and Castro fled to Mexico, and Alvarado