Treaty of Guayaquil

The war ended after the Battle of Tarqui when the Peruvian advance lost momentum, with both parties signing the Girón Agreement on the same day, but later continuing hostilities until the abrupt end of the war after a coup that deposed President José de la Mar.

[4] Even from a letter from Bolívar himself to Francisco de Paula Santander, dated August 3, 1822, it appears that the Liberator recognized that both Jaén and Maynas legitimately belonged to Peru.

[6] Subsequently, the Peruvian and great Colombian delegates, José de Larrea y Loredo and Pedro Gual, met in Guayaquil.

Articles 6 and 7 provided that a Commission of two people should be appointed for each Republic to go through, rectify and fix the dividing line, work that should begin 40 days after the treaty was ratified by both countries.

[8][9] The signing of the treaty created instability in the region and did not manage to end the dispute between both states, itself complicating further with the latter dissolution of the Gran Colombia and the creation of Ecuador.