Iran declared a day of national mourning on Wednesday after the death of Venezuelan President Hugo Chavez, who shared the Islamic Republic's loathing for U.S. "imperialism".
Iranian President Mahmoud Ahmadinejad, who had forged a public friendship with Chavez characterized by lavish mutual praise, hugs and light-hearted moments, may attend Chavez's funeral on Friday, Iranian state news agency IRNA reported.
The two men had sought closer ties between their geographically distant countries, although action on joint social and military projects announced in recent years has often lagged behind the rhetoric.
"Hugo Chavez is a name known to all nations. His name is a reminder of cleanliness and kindness, bravery ... dedication and tireless efforts to serve the people, especially the poor and those scarred by colonialism and imperialism," Ahmadinejad sail.
"I offer my condolences to all nations, the great nation of Venezuela and his respected family over this tragic event," he said in statement published on his official website.
Chavez died on Tuesday after a two-year battle with cancer. He suffered multiple complications after his latest operation in December and had not made a public appearance since.
The news of Chavez's death dominated many Iranian news websites, which carried obituaries and photo galleries of him.
The United States had looked askance at Venezuela's warm relationship with Iran, fearing that Caracas could give Tehran an economic lifeline as it struggles to stave off pressure from sanctions over its nuclear activities.
Iran denies seeking an atomic weapons capability and says it has the right to develop its own nuclear fuel cycle under its membership of the nuclear Non-Proliferation Treaty.
Chavez, at a news conference with Ahmadinejad in Caracas in January 2012, mocked U.S. suspicions about Iran's nuclear work, saying: "That hill will open up and a big atomic bomb will come out."
Syrian state media also mourned Chavez's deatrh on Wednesday, saying he had taken an honorable stand against a conspiracy targeting Damascus.
Chavez, an ally and regular guest of President Bashar al-Assad, shipped diesel fuel to Syria last year to help it overcome shortages caused by Western sanctions, and described the rebellion against Assad as an international plot backed by Western powers.
Assad has been battling an uprising that broke out in March 2011.The mainly peaceful protests were met with force and gradually grew into an armed insurgency in which the United Nations says 70,000 people have been killed.
Syria's state television led its news with the announcement of Chavez's death, saying he had "stood up for legitimate Arab rights, including an honorable stand towards the conspiracy against Syria".
"He repeatedly declared his solidarity with Syria's leadership and its people in the face of the fierce imperialist attack it was exposed to, and condemned the American pressure," it said.
Want to enjoy 'Zen' reading - with no ads and just the article? Subscribe todaySubscribe now