MOSCOW — Even after the Soviet Union was long dead and gone, many Russians still saw him as their man in Havana.

In a bygone time, Fidel Castro was Moscow’s communist ally in the United States' back yard, a persistent reminder that the Soviet Union had friends in the West, just 90 miles off the coast of Florida. He was greeted by adoring crowds in a 40-day-long trip to the Soviet Union in 1963, and remained among the daring, young faces of socialism as Moscow's leaders grew steadily older and their funerals more frequent.

But Moscow’s fascination with Castro extended beyond the Soviet Union's collapse in 1991. Nostalgia played a part of that. But more importantly, in nominally capitalist Russia, Castro remained a symbol of defiance to U.S. influence abroad, and one that has meant more for Russia as tensions with the West have risen again.

In Moscow, Russians pay tribute to Fidel Castro (Reuters)

“Castro proved it: you can be an object of pressure and economic war from the United States and endure,” tweeted Alexey Pushkov, the head of the Foreign Affairs Committee in Russia's lower house of parliament, after news of Castro's death broke. “And now the head of the USA goes to Havana, and not the other way around.”

Castro “showed that political will oriented toward the national interests of one's own country are stronger than any internal or external factors,” said Konstantin Kosachev, the chairman of the Foreign Affairs Committee in Russia's upper house of parliament.

When Russia was slapped with U.S. sanctions after the annexation of Crimea, politicians here compared themselves to Cuba. When the United States decided to lift the embargo against Cuba just months later, it was treated as proof that Cuba (and hence Russia) was on the right side of history.

“It is characteristic that the president of the United States admitted the lack of results of many years of attempts to ‘isolate’ Cuba,” Russia's Foreign Ministry wrote in December 2014, after President Obama announced that the United States would normalize relations with Cuba. “It remains to hope that Washington will soon recognize the fruitlessness of the similar pressure of sanctions on other countries.”

Castro's ability to endure is a running joke here. Dmitry Smirnov, a reporter for the Russian daily Komsomolskaya Pravda who is assigned to Russian President Vladimir Putin's press pool, last week tweeted a photo summing up that relationship. “Trump?” the caption shows Castro saying. “He's already my twelfth.”

There were concrete benefits to Moscow's relationship with Havana during the Cold War. Cuba provided the Soviet Union a warm water port, a staging area for Marxist revolutions in Latin America and Africa, as well as a source of cane sugar and a tourist destination as a perk for citizens who had earned it.

When the Soviet Union came crashing down, Russia no longer needed much of that. But Russia’s Defense Ministry recently floated the idea of restoring the Soviet naval base on Cuba, and Putin canceled $35 billion in Cuba's debt to Russia as Moscow searched for friends following the annexation of Crimea.

“Fidel Castro was a true and reliable friend of Russia,” Putin said Saturday. “He made an enormous personal contribution into the making and development of the Russian-Cuban relationship, of a close strategic partnership in all areas.”

The life of Fidel Castro (1926-2016)

SLUG: FO/CASTRO-obit DATE: Downloaded 01/15/2007 (EEL) CREDIT: Photo by CBS Photo Archive/Getty Images CAPTION: Screen capture of Cuban guerilla leader and future dictator Fidel Castro and associates as they cheer and raise their weapons and fists in the air on the CBS News Special Event 'Rebels of the Sierra Maestra,' Cuba, 1957. (THIS IMAGE WAS FLIPPED HORIZONTALLY WHEN WE ORIGINALLY DOWNLOADED IT. GETTY HAS CONFIRMED THIS IS THE PROPER ORIENTATION OF THE PHOTO--JCK--)

Read more: