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
Vice President of Costa Rica system of Vice-Heads-of-State. From 1847 to 1848 Costa Rica had a Vice-President of State, who was popularly elected. From 1848 to 1849 the popularly elected Costa Rican Vice-President of the Republic presided over the Legislature. In the Costa Rican constitutions of 1859, 1869 and 1871, the role of popularly elected vice-president was replaced by two Designates to the Presidency, elected annually by the Legislature. In 1881 President Tomás Guardia Gutiérrez replaced the system of two Designates to the Presidency with one of seven Designates. This situation lasted until the constitutional government assumed power in 1882 In 1882, with the restoration