section_path: Second presidency (2007–present)/Foreign policy
section_name: Foreign policy
paragraph_text: Foreign policy
  
  Soon after the 2006 election, Ortega paid an official visit to Iran and met Iranian President Mahmoud Ahmadinejad. Ortega told the press that the "revolutions of Iran and Nicaragua are almost twin revolutions... since both revolutions are about justice, liberty, self-determination, and the struggle against imperialism ".
  
  On 6 March 2008, following the 2008 Andean diplomatic crisis, Ortega announced that Nicaragua was breaking diplomatic ties with Colombia "in solidarity with the Ecuadorian people". Ortega also stated, "We are not breaking relations with the Colombian people. We are breaking relations with the terrorist policy practiced by Álvaro Uribe 's government". The relations were restored with the resolution at a Rio Group summit held in Santo Domingo, Dominican Republic, on 7 March 2008. At the summit Colombia's Álvaro Uribe, Ecuador's Rafael Correa, Venezuela's Hugo Chávez and Ortega publicly shook hands in a show of good-will. The handshakes, broadcast live throughout Latin America, appeared to signal that a week of military buildups and diplomatic repercussions was over. After the handshakes, Ortega said he would re-establish diplomatic ties with Colombia. Uribe then quipped that he would send him the bill for his ambassador's plane fare.
  
  On 25 May 2008, Ortega, upon learning of the death of FARC guerrilla leader Manuel Marulanda in Colombia, expressed condolences to the family of Marulanda and solidarity with the FARC and called Marulanda an extraordinary fighter who battled against profound inequalities in Colombia. The declarations were protested by the Colombian government and criticized in the major Colombian media outlets.
  
  On 2 September 2008, during ceremonies for the 29th anniversary of the founding of the Nicaraguan army, Ortega announced that "Nicaragua recognizes the independence of South Ossetia and Abkhazia and fully supports the Russian government 's position". Ortega's decision made Nicaragua the second country (after Russia) to recognize the independence of Abkhazia and South Ossetia from Georgia.
  
  Under Ortega's leadership, Nicaragua joined the Bolivarian Alliance for the Americas.
  
  When seeking office, Ortega threatened to cut diplomatic recognition with the Republic of China (Taiwan, formerly Nationalist China) in order to restore relations with the Mainland -based People's Republic of China (as in the period from 1985 to 1990) as the legal government of China. But he did not do so. In 2007 Ortega stated that Nicaragua did not accept the One China Policy of the PRC government and that Nicaragua reserved the right to maintain official diplomatic relations with the ROC. He reassured President Chen Shui Bian in 2007 that Nicaragua would not break diplomatic relations with the ROC. He explained that during the Reagan administration the United States imposed sanctions on Nicaragua. But cutting ties with Taipei was a sad and painful decision because of the friendship between Nicaragua and Taiwan's people and government. Ortega met with the ROC President Ma Ying-jeou in 2009 and both agreed to improve the diplomatic ties between both countries. However, with a trade show from China (PRC) in Managua in 2010, he is attempting a two-track policy to get benefits from both sides. In 2016 Nicaragua and China (ROC) signed an air services agreement and Ortega stated that Nicaragua's free trade deal with the ROC had benefited both nations. The ROC increased its investment in Nicaragua. In December 2021, Nicaragua once again switched recognition with the PRC.
  
  In September 2010, after a US report listed Nicaragua as a "major" drug-trafficking centre, with Costa Rica and Honduras, Ortega urged the US Congress and Obama administration to allocate more resources to assist the fight against drug trafficking.
  
  During the Libyan Civil War, Ortega was among the very few leaders who spoke out in clear defense of the embattled Muammar Gaddafi. During a telephone conversation between the two, Ortega told Gaddafi that he was "waging a great battle to defend his nation" and stated that "it's at difficult times that loyalty and resolve are put to the test."
  
  Ortega has said that Assad's victory in the 2014 election is an important step to "attain peace in Syria and a clear cut evidence that the Syrian people trust their president as a national leader and support his policies which aim at maintaining Syria's sovereignty and unity".
  
  Ortega attended the swearing-in ceremony of Nicolás Maduro for his second term on 10 January 2019.
  
  In an interview with Max Blumenthal in August 2019, Ortega stated that he was open to the idea of Bernie Sanders (who had visited him in 1985) winning the US presidency in 2020 and that Sanders's message "goes in the right direction for the U.S. to become a pole of peace, development, and cooperation".