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 in this project, and it was inaugurated in March 2011, with a match between the national teams of Costa Rica and China. Costa Rica finished a term on the United Nations Security Council, having been elected for a nonrenewable, two-year term in the 2007 election. Its term expired on 31 December 2009; this was Costa Rica's third time on the Security Council. Elayne Whyte Gómez is the Permanent Representative of Costa Rica to the UN Office at Geneva (2017) and President of the United Nations Conference to Negotiate a Legally Binding Instrument to Prohibit Nuclear Weapons. The 2011 census counted