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
Brazil–Costa Rica relations Brazilian Presidents have visited Costa Rica (Fernando Henrique Cardoso (2000) and Luiz Inácio Lula da Silva (2009). Brazil–Costa Rica relations Brazil–Costa Rica relations refers to bilateral relations between Brazil and Costa Rica. Relations commenced in 1907, when the first Brazilian diplomats were officially accredited by the Costa Rican government. Costa Rica has an embassy in Brasilia, and Brazil has an embassy in San José. Also, Costa Rica has consulates in Curitiba, Florianópolis, Rio de Janeiro and São Paulo. Both countries are members of Organization of American States. Since the establishment of diplomatic links, four Costa Rican Presidents have visited Brazil