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 José Alvarado led the party of the federal government under José Francisco Morazán Quezada and resisted the separation. On 5 April 1839 his troops were defeated by Nicaragua and to the troops of Morazán in the battle of Espiritu Santo in El Salvador. On 25 September 1839, at San Pedro Perulapán, the troops of Honduras surprised Francisco Ferrera, who was wounded and fled to Nicaragua. Although Alvarado stated that he withdrew for reasons of health, the political and military pressure from Morazán contributed to it. He died in Gracias. Juan José Alvarado Juan José Alvarado (1798–1857) was Supreme Director of Honduras from