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 officials elected to the vice-presidential position since 1821. Between 1821 and 1824 Costa Rica was governed through a system of Governing Committees who chose from among their members a president and a vice-president. Between 1824 and 1841, in accordance with the Basic Law of 21 January 1825 and 1844, a Vice-Head-of-State was elected by the people. In line with the Decree of Rules and Guarantees of 1841, a popularly elected Second-Head-of-State was created to replace the Head of State in case of temporary or permanent absence. From 1842 to 1844 and from 1846 to 1847 the country returned to the