Former President Fidel Castro, who led a rebel army to improbable victory in Cuba, embraced Soviet-style communism and defied the power of 10 US presidents during his half-a-century rule, has died at the age of 90.

With a shaking voice, his younger brother, Raul Castro, announced on state television that his brother died at 10:29 p.m. on Friday night.

Castro’s reign over the island-nation 90 miles from Florida was marked by the US-backed Bay of Pigs invasion in 1961 and the Cuban Missile Crisis a year later that brought the world to the brink of nuclear war.

The bearded revolutionary, who survived a crippling US trade embargo as well as dozens, possibly hundreds, of assassination plots, died eight years after ill health forced him to formally hand power over to Raul.

Castro overcame imprisonment at the hands of dictator Fulgencio Batista, exile in Mexico and a disastrous start to his rebellion before triumphantly riding into Havana in January 1959 to become, at the age of 32, the youngest leader in Latin America. For decades, he served as an inspiration and source of support to revolutionaries from Latin America to Africa.

His commitment to socialism was unwavering, though his power finally began to fade in mid-2006 when a gastrointestinal ailment forced him to hand over the presidency to Raul in 2008, provisionally at first and then permanently.

His defiant image lingered long after he gave up his trademark Cohiba cigars for health reasons and his tall frame grew stooped.

“Socialism or death” remained Castro’s rallying cry even as Western-style democracy swept the globe and other communist regimes in China and Vietnam embraced capitalism, leaving this island of 11 million people an economically crippled Marxist curiosity.

He survived long enough to see Raul Castro negotiate an opening with US President Barack Obama on December 17, 2014, when Washington and Havana announced they would move to restore diplomatic ties for the first time since they were severed in 1961.

He cautiously blessed the historic deal with his life-long enemy in a letter published after a month-long silence.

“It’s a tragedy,” said Dayan Montalvo, a 22-year-old nurse. “We all grew up with him. I feel really hurt by the news that we just heard.”

Fidel Castro Ruz was born on August 13, 1926, in eastern Cuba’s sugar country, where his Spanish immigrant father worked first recruiting labour for US sugar companies and later built up a prosperous plantation of his own.

Castro attended Jesuit schools, then the University of Havana, where he received law and social science degrees. His life as a rebel began in 1953 with a reckless attack on the Moncada military barracks in the eastern city of Santiago.

Most of his comrades were killed and Fidel and his brother Raul went to prison.

comment COMMENT NOW