The Cenepa war produced far-reaching consequences for relations between Ecuador and Peru. Among the effects of the war that paved the way for a definitive settlement of the border issues included the military outcome of the brief conflict; the lack of vindication of the Ecuadorian armed forces after the disappointing results of the wars of 1858, 1941, and 1981; and the Peruvians’ realization of the need for a resolution of a problem. Thus, in the aftermath of the war, both nations, brokered by the "guarantors" of the Rio Protocol, entered into a long and difficult negotiation process that concluded with the signing of a Peace Treaty in 1998, and the closing of the hitherto un-demarcated stretch of common border, deep in the Amazonian rainforest.