Final answer:
The 1998 peace agreement resolving the border dispute between Ecuador and Peru ended a long term conflict influenced by historical and colonial legacies.
Step-by-step explanation:
The peace agreement that resolved the longstanding border dispute between Ecuador and another country in 1998 was with Peru.
discussing this topic would describe the complex history of territorial disputes in South America, often rooted in the colonial period and the dissolution of the Spanish Empire. These disputes frequently involved countries laying claim to regions based on historical presence, geographic considerations, and strategic interests. The border conflict between Ecuador and Peru, in particular, dates back to disagreements over territory following the independence of South American countries from Spanish rule. A significant part of the disputes was due to the unclear demarcations left by the colonial power. The conflict escalated at various points throughout the 20th century, leading to armed confrontations. However, the 1998 peace agreement, known as the Brasília Presidential Act, was a landmark in peaceful resolution where both nations agreed upon the definitive demarcation of their border, bringing an end to hostilities and fostering a framework for cooperation and development between the two neighbors.