Costa Rica–Mexico relations peaceful resolution. This was known as the "Pacto de la embajada de México". The war ended in April 1948 and Costa Rica entered into its 'Second Republic.' During the central-American wars taking place in neighboring El Salvador, Guatemala and Nicaragua; both Costa Rica and Mexico led mediation dialogues between warring factions in each nation in order to bring peace and stability to the region. Mexico (along with Colombia, Panama and Venezuela) created the Contadora Group which helped create the framework for the Esquipulas Peace Agreement, led by Costa Rica's President Oscar Arias. Presidential visits from Costa Rica to Mexico Presidential
Costa Rica a country that is geographically and culturally much nearer to Costa Rica?" Arias announced that both countries would exchange ambassadors. Costa Rica has a long-term disagreement with Nicaragua over the San Juan River, which defines the border between the two countries, and Costa Rica's rights of navigation on the river. In 2010, there was also a dispute around Isla Calero, and the impact of Nicaraguan dredging of the river in that area. On 14 July 2009, the International Court of Justice in the Hague upheld Costa Rica's navigation rights for commercial purposes to subsistence fishing on their side of the