While the death of Cuban leader Fidel Castro prompted cheers from the country's exiles in Miami, the 90-year-old revolutionary leader's passing produced expressions of respect in other parts of the world and measured responses from governments that saw the devoted socialist as a threat.
U.S. President Barack Obama noted that while "discord and profound political disagreements" marked the relationship between the United States and Cuba for nearly six decades, Americans were extending "a hand of friendship to the Cuban people" during their time of grief.
"History will record and judge the enormous impact of this singular figure on the people and world around him," Obama said.
While spending the Thanksgiving weekend in Florida, where the announcement of Castro's death early Saturday brought Cuban exiles into the streets to celebrate, U.S. President-elect Donald Trump took to Twitter to share a thought that proved pithy even for the medium: "Fidel Castro is dead!"
Elsewhere in world, Castro was
In a telegram to Cuban President Raul Castro, Fidel's 85-year-old brother, Pope Francis offered "my sense of grief to your excellency and family."
Francis broke from the Vatican's usual practice of having the secretary of state send official condolences. In a mark of the esteem the pope held for Castro, whom he met during a visit to Cuba last year, Francis signed the telegram himself.
Russian President Vladimir Putin, whose country was Cuba's main ally and supporter during the Soviet era, called Castro "a sincere and reliable friend of Russia" who had built "an inspiring example for many countries and nations."
Chinese President Xi Jinping said Castro "made immortal historical contributions to the development of socialism around the world."
"With his death, the Chinese people have lost a close comrade and a sincere friend," Xi said in a telegram to Raul Castro, state broadcaster CCTV reported. "His glorious image and great achievements will be recorded in history forever."
United Nations Secretary General Ban Ki-moon said he had vivid memories of meeting Castro in January 2014 and having "a lively discussion that covered developments around the world as well as sustainable development and climate change."
"Under former President Castro, Cuba made advances in the fields of education, literacy and health," Ban said. "I hope Cuba will continue to advance on a path of reform and greater prosperity.
Castro's death was felt especially keenly in Latin America, where his success in overthrowing a military regime inspired leftist activists in other countries.
Salvador Sanchez Ceren, the president of El Salvador, said he felt "deep sorrow ... of my friend and eternal companion, Commander Fidel Castro Ruz."
Mexican president Enrique Pena Nieto tweeted that "Fidel Castro was a friend of Mexico, promoting bilateral relations based on respect, dialogue and solidarity."
Venezuelan President Nicolas Maduro recalled Castro's departure from Mexico on the yacht Granma with his brother Raul and several dozen supporters to start their revolution.
"Sixty years after the Granma sailed from Mexico, Fidel sails toward the immortality of all those who fight their whole lives," Maduro tweeted. "Onward to victory, always!"
Rubén Berríos Martínez, longtime leader of the Puerto Rican Independence Party, called Castro the "largest and most influential Latin American of the 20th century, whose verticality, vision and passion has always served as an inspiration for those who aspired to a more just, free and dignified Latin America."
Brazil's former President Luiz Inacio Lula da Silva said on his Facebook page that Castro was his "friend and companion" and the "greatest of all Latin Americans."
Silva said Castro was like an "older brother-an irreplaceable companion. He encouraged dreams of freedom. sovereignty and equality."
A statement from the Spanish government hailed Castro as "a figure of enormous historical importance."
"As a son of Spaniards, former president Castro always maintained close relations with Spain and showed great affection for his family and cultural ties," the government statement said.
However, there were shouts and insults in Madrid as a small crowd composed of both pro- and anti-Castro supporters met in front of the Cuban embassy.
Turkey's foreign ministry commended the "legendary leader of the Cuban Revolution" for "instituting many deep reforms in his country from health care to education, art to science."
"The struggle to which he dedicated his life echoed not just in Cuba but across the world, and has awakened respect even in other political camps," the ministry said. "His words 'another world is possible' reflect the shared longing of billions of people from Latin America to Asia, from the Middle East to Africa."
"India mourns the loss of a great friend," Indian Prime Minister Nerendra Modi said on Twitter.
Greek Prime Minister Alexis Tsipras tweeted: "Goodbye, commandante. Until the peoples' eternal victory."
"Fidel Castro in the 20th century did everything possible to destroy the colonial system, to establish
Ammar al-Moussawi, who is in charge of international relations for Lebanon's militant Hezbollah group, lauded Castro as "a historic symbol whose life was a lighthouse to all revolutionaries around the world."
Guyanese Prime Minister Moses Nagamootoo said Castro shared his island's resources with any nation that dared ask for help.
The Castro government sent thousands of doctors and nurses to work in remote Caribbean areas where local and other foreign medical personnel had refused to go, Nagamootoo said.
"His and Cuba's contribution to humanity and the Caribbean is unmatched by any other nation in terms of brotherly and sisterly relations. He was an international gift to humanity," he said.
The Nelson Mandela Foundation, established to carry on the work of the late anti-apartheid leader who would go on to become South Africa's president, recounted the close relationship Mandela forged with the Cuban leader.
When Mandela became president in 1994 he was criticized by some in the West for his ties to Castro. Mandela replied that anyone who objected could "jump in the pool."
"The first country we approached (for assistance in battling apartheid) was the United States of America. We could not even succeed to come close to the government, and they refused to assist us," Mandela said in a 1990 documentary to explain his loyalty to Castro. "But Cuba, the moment we appealed for assistance they were ready to do so and they did so."
Canadian Prime Minister Justin Trudeau joined the chorus of admirers, calling Castro "a legendary revolutionary and orator" and a "remarkable leader."
"While a controversial figure, both Mr. Castro's supporters and detractors recognized his tremendous dedication and love for the Cuban people who had a deep and lasting affection for 'el Comandante,'''said Trudeau, whose late father, former Prime Minister Pierre Trudeau, had a warm friendship with Castro.
Trudeau's reaction prompted strong criticism on Twitter from two Republican U.S. senators, Marco Rubio of Florida and Ted Cruz of Texas, both Cuban-Americans.
"Is this a real statement or a parody? Because if this is a real statement from the PM of Canada it is shameful (and) embarrassing," Rubio tweeted. Cruz wrote: "Disgraceful. Why do young socialists idolize totalitarian tyrants? Castro, Stalin, Mao, Pol Pot -- all evil, torturing murderers."
Former U.S. President Jimmy Carter said he and his wife Rosalynn "remember fondly our visits with him in Cuba and his love of his country." The couple visited Cuba in 2002, long after Carter left office.
While most of the official remembrances were complimentary, a few emphasized less-flattering views of the late leader.
Trump elaborated on his initial tweet later Saturday, calling Castro "a brutal dictator who oppressed his own people for nearly six decades."
Trump says Castro left a legacy of "firing squads, theft, unimaginable suffering, poverty and the denial of fundamental human rights."
House Speaker Paul Ryan, the top Republican in the United States Congress, said any remembrances should be reserved "for the memory and sacrifices of all those who have suffered under the Castros."
"Now that Fidel Castro is dead, the cruelty and oppression of his regime should die with him," Ryan said in a statement.
Ed Royce, chairman of the U.S. House of Representatives Foreign Affairs Committee, offered a similar assessment, saying "no one should rule anywhere near as long as Fidel Castro did."
"His legacy is one of repression at home, and support for terrorism abroad. Sadly, Raul Castro is no better for Cubans who yearn for freedom," Royce said.
Republican officials in the U.S. were not the only ones with harsh words for the dead revolutionary.
"After decades under Fidel's doctrine of oppression and antagonism, there is hope that a new path for Cuba is opening," Nancy Pelosi, who leads the Democrats in the House of Representatives, said.
"I hope his death can start a freedom revolution in Cuba," Denmark's Foreign Minister Kristian Jensen said. "Any demise is sad. In this case I believe that it can bring something good."
Peter Hain, a former member of the British Cabinet and anti-apartheid campaigner, tempered praise for Castro with criticism of some aspects of his long rule.
"Although responsible for indefensible human rights and free-speech abuses, Castro created a society of unparalleled access to free health, education and equal opportunity despite an economically throttling USA siege," Hain said. "His troops inflicted the first defeat on South Africa's troops in Angola in 1988, a vital turning point in the struggle against apartheid."
The Associated Press