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
Foreign relations of Costa Rica their stead. With the establishment of democratically-elected governments in all Central American nations by the 1990s, Costa Rica turned its focus from regional conflicts to the pursuit of neoliberal policies on the isthmus. The influence of these policies, along with the US invasion of Panama, was instrumental in drawing Panama into the Central American model of neoliberalism. Costa Rica also participated in the multinational Partnership for Democracy and Development in Central America. Regional political integration has not proven attractive to Costa Rica. The country debated its role in the Central American integration process under former President Calderon. Costa Rica has