For six years, relations between Chile and Peru have been overshadowed by their dispute at the International Court of Justice (ICJ) in the Hague about their maritime border.
Now that dispute has been resolved, analysts say the two countries should be able to move on from their acrimonious past and forge closer ties.
"This could be a turning point," said Mario Artaza, professor at the University of Santiago and a former Chilean ambassador.
The ICJ ruling, announced on Monday, gave both countries some cause for celebration.
The court ordered Chile to relinquish control of a large swathe of the Pacific Ocean and give it to Peru, a decision described by Chile's President Sebastian Pinera as "a lamentable loss" for his nation.
But the swathe was smaller than Peru had wanted.
It had asked for 38,000 sq km (23,600 sq miles) but had to settle for around 21,000 sq km. Chile gets to keep the rest, including the lucrative fishing grounds closest to its coastline.
By changing the border, the court also gave Peru an additional 28,000 sq km of sea that until now was in international waters.
Additionally, the ICJ said the maritime border should start from the same point on the coastline as it does now. Peru had wanted it moved south, further into Chilean territory.
"It's a bitter-sweet verdict," Mr Artaza said.
Unsurprisingly, both governments made the best of the ruling.
In Lima, Peruvian President Ollanta Humala said his country had won 70% of the area it had demanded while in Santiago, Mr Pinera said the court had heeded most of Chile's arguments.
Crucially, both countries said they would abide by the verdict.
The biggest impact of the ICJ ruling will be on Chilean fishermen in the frontier city of Arica. Although they will be still be able to fish the waters closest to the coast, they will lose access to waters further out.
One fishermen's association in Arica estimated that as a result, the fleet will be deprived of around 35% of its catch.
The Chilean government has promised to consider financial compensation for the fishermen.
And there are further hurdles to overcome.
The Peruvians want the border changes to be implemented as soon as possible while the Chileans say it will take time.
And some Chileans fear that having failed to gain everything they wanted, the Peruvians will continue to press further claims for Chilean land and sea.
"The judicial stage of this process has ended and now the political-diplomatic stage begins," said Gabriel Gaspar, an analyst at Chilean think-tank Fundacion Chile 21.
"One would like to think that from that, an agreement could be reached to ensure that Peru makes no further territorial claims against Chile."
Monday's verdict might also have implications for Chile's future relations with Bolivia, which has also taken Chile to The Hague over claims dating from the War of the Pacific.
Bolivia lodged its claim only last year and a verdict is not expected for several years.
Source: BBC