Huber Matos Benitez, who has died aged 95, helped lead the Cuban Revolution as one of Fidel Castro's key lieutenants before his efforts to resign from the burgeoning communist government landed him in prison for 20 years.
Matos was a 34-year-old rice farmer and teacher and an opponent of Cuban dictator General Fulgencio Batista when Castro led a failed uprising in 1953. An inspired Matos later joined Castro and served as a commander in the Sierra Maestra mountains. The two men clashed occasionally, but Matos claimed that at one point Castro named him third in line for leadership after Castro's brother Raul.
In 2009, Matos said he joined the revolution hoping to restore democracy to his country, which the island experienced only briefly before Batista led a coup in 1952.
Matos, who had been a professor of education, first travelled to Costa Rica to obtain weapons and ammunition for delivery to Castro's forces before eventually joining the rebels in the mountains. He was captured in 1957 by Batista forces but was able to escape.
The revolution overthrew Batista on New Year's Day 1959 and Matos rolled into Havana at Castro's side. But within months a disillusioned Matos wanted out of the new government, fearing the Castros and Guevara were steering the country toward communism and that Castro had no intention of holding free elections as he had promised.
"There was another agenda," Matos said. "Fidel said one thing for the public, and the steps he took were another story." He said his message to Castro was: "If you intend to stay in power, don't count on me."
When he first tried to resign, Castro would not let him. In October 1959, Matos was arrested and convicted of treason. He was told he would face the firing squad but believes he was sent to prison instead because Castro feared he would become a martyr.
He was born in born in Yara, Cuba, and graduated from the University of Havana in 1944 before becoming a teacher. In his book, How Night Fell, he described being tortured and kept for years in isolation. He was released in October 1979 and was reunited with his wife and four grown-up children. He initially lived in Caracas, where he founded the group Independent and Democratic Cuba, and later moved to Miami.
"The revolution didn't have to become a catastrophe," he said. "If (Castro) would have brought reforms within the democratic framework, Cuba would have been a great country."
Matos lauded his wife for her bravery during the years he spent behind bars, noting how she raised their four children, working as a seamstress while keeping his case alive in the international human rights community.
In Miami, Matos led the Independent and Democratic Cuba group, one of many anti-Castro organisations which sprung up over the years. He was regarded with suspicion by some of the Miami exile community's most powerful members because of his early opposition to Batista and his support for dissidents inside Cuba.
Still, Matos remained an outspoken critic of Castro. Fearing assassination attempts, he often kept a pistol in a leather holster tucked into his waistband.
In May 2009, at the age of 90, he travelled to Honduras to protest against a proposal to reinstate Cuba as a member of the Organisation of American States.
"I'm one of those who is convinced there will be a change in Cuba in a time not very far in the future; that's inevitable. The system failed completely. It not only failed completely, but among the young generations there's an eagerness for change that's unstoppable," he said.
Matos said he had no illusions of returning to Cuba as a political leader.
But he hoped to provide guidance for the island's future leaders.
"I consider myself a Cuban who can still be useful to my country," he said.