Fidel Castro is dead at 90. He took power in 1959, at the head of the joyful, raucous, and brash Cuban Revolution, which was immediately placed under siege by Washington. Castro almost outlasted 11 US presidents—Eisenhower, Kennedy, LBJ, Nixon, Ford, Carter, Reagan, Bush I, Clinton, Bush II, and passing in the waning days of Obama’s last term. Perhaps he just couldn’t bear the thought of President Donald Trump. Having been sanctimoniously lectured by all 11 US presidents on what constitutes proper democratic procedure, he might have thought Trump, about to take office with a minority of the vote and with significant voter suppression, a vindication.

I doubt it. In recent years, since he gave up power to his brother Raúl, Castro has dedicated himself to writing lengthy thought pieces, many of them on global warming, war, the fascism of neoliberalism, poverty, and other threats to humanity. Castro was a famous optimist and an irrepressible strategist, finding ways out of the grimmest situations (such as helping to nurture the coming to power of an electoral left in Latin America, which ended Cuba’s postCold War geopolitical isolation). His good friend the late Gabriel García Márquez once said Castro was a “sore loser” who would not rest until he was able to “invert the terms of the situation and convert defeat into a victory.” But, after having dodged by some counts 639 assassination attempts by Washington, Castro is finally at rest. The nightmare of Trump might have been a US president too far.

There’s going to be a lot said about him in the coming days, and hopefully the recent thaw between Obama and Raúl Castro will permit a more generous assessment than what otherwise would have been on offer. A good starting place, for those wanting to go beyond the obits, would be the closest thing we have from Castro to an autobiography. About a decade ago, Castro did over a hundred hours of interviews with Ignacio Ramonet, published in English in 2008 as My Life. In it, Castro relates a story that captures his incongruities nicely: One of his earliest political memories, he tells Ramonet, is of the Spanish Civil War. His Galician father was a franquista, as were his Jesuit teachers, who prayed for Spain’s martyred priests. But he also learned of the Civil War, and what was being fought over, from loyalists. When asked by his family’s illiterate cook, a “fire-breathing Republican,” for news of the war, the 9-year-old Castro read him stories that played up loyalist success because he wanted to make him “feel better.” Thus Castro’s very first act of censorship was done in kindness.

Another story has Castro, in 1939, writing FDR to practice his English, requesting “a ten dollars green bill.” Roosevelt replied, but didn’t include the ten bucks, giving Castro a joke he’d use throughout his life: If FDR had paid up, then perhaps he wouldn’t have led a nationalist, anti-interventionist revolution. Nationalist resentment is sometimes built from fabricated grievances. Not in Cuba. In the late 19th century, rebels against Spanish rule forged an antiracist and democratic nationalism, only to be preempted by the United States’ 1898 invasion. Over the subsequent years, the United States regularly intervened on the island—the Marines occupied it in 190609, 1912, and 191722—and just at the moment when FDR proclaimed his Good Neighbor Policy, his ambassador in Havana was openly working to oust a reformist president. Castro incarnated his generation’s finely tuned sense of anticipated betrayal and disappointment, animated by the spirit of New Left volunteerism, in a belief that the course of history could be bent to his will.

For decades now, celebrants and critics of the Cuban Revolution have played a mug’s game of trying to pinpoint the moment when Castro turned to Marxism. Castro himself has long hedged on this question, downplaying his populist roots in order to claim a purer socialist pedigree, though in My Life he acknowledges equally the influence of José Martí’s “ethics,” which for Castro meant national dignity, and Marxism-Leninism’s historical “compass.” He admitted favoring the moralizing Marx, whom Castro, a Jesuit-educated lawyer, admired for his “austerity” and “self-sacrifice.” “If Ulysses was captivated by the songs of the sirens,” Castro said, then he “was captivated by the irrefutable truths of the Marxist denunciations.”

It’s a tempting analogy; after all, it is only by closing his eyes and willfully blinding himself to the ugliness of the singers that Ulysses could be seduced by their song. But explaining the Cuban Revolution’s tilt toward the Soviet Union by pinpointing when its captain broke free from the course of moderation misses the obvious: If Castro had been a Cuban Communist, he probably would have been more willing to accommodate himself to the realities of Washington’s power in the hemisphere; the Partido Socialista Popular—as the Cuban Communist Party was called—had carved out a space in national politics by entering into successive backroom deals with corrupt regimes. It was Cuban populist-nationalism that was unyielding. “We are proud of the history of our country; we learned it in school and have grown up hearing of freedom, justice and human rights,” Castro said in a lengthy defense at his 1953 trial for his first failed attempt to overthrow Batista, “and the island will first sink into the sea before we consent to be the slaves of anyone.”

There are many other arguments to be had about Castro and the Cuban Revolution, about the relationship of political to social rights, about whether, considering the fate of other social democratic experiments in Latin America—in Guatemala, for example, or Chile—the Cuban Revolution would have survived had Castro not shut down civil society, and if that survival was worth it. In My Life, Castro lists his country’s accomplishments in education and health care, advances in science and medicine, contributions to decolonization and beating back white supremacy in Africa, ongoing humanitarian internationalism, and the audacity of having survived “thousands of acts of sabotage and terrorists attacks organized by the government of the United States.” “What,” he asks, “is Cuba blamed for?”

The list is long, and over the decades the defense of the Cuban state has been, for many, deeply dehumanizing. And since Castro himself has repeatedly emphasized the importance of the individual in history—a “man’s personality can become an objective factor,” he once said—he will be held to account for the high cost involved in the revolution’s survival. And the most damning criticism leveled at the Cuban Revolution is not that it is repressive but that its repression was for naught, with all the old problems that plagued Cuba prior to the revolution having returned, including sex tourism, race-based economic inequality, and corruption—problems that will worsen if rapprochement is allowed to proceed.

In all his goodness and badness, Castro was a full man of the Enlightenment. It’s fitting, though depressing, that’s he’s left us on the cusp of a new darkness. But as he once said, the ideals of “Liberty, Fraternity, and Equality,” though routinely trampled, “will always sprout anew, everywhere.”