By Sarah Marsh
HAVANA (Reuters) - Leaders of Cuba's leftist allies and other developing countries descend on Havana on Tuesday for a mass rally commemorating Fidel Castro, the rebel who seized power in a 1959 revolution and ruled the island for half a century.
Castro, who ceded control to his younger brother Raul Castro a decade ago due to poor health, died on Friday at the age of 90, leaving behind a mixed legacy.
For many, especially in Latin America and Africa, he was a symbol of resistance to imperialism, having ousted a U.S.-backed dictator, and a champion of the poor.
Others condemned him as a tyrant whose socialism ran the economy to ruin.
Cuba announced nine days of mourning after his death, including the mass rally on Tuesday evening in Revolution Square - the same massive space where Castro once held fiery, marathon speeches.
Many leaders of Latin America's left, including Venezuelan President Nicolas Maduro and Bolivian President Evo Morales, were to attend the ceremony.
Shortly after landing in Havana on Monday night, Maduro paid tribute to Fidel´s "immortal force".
Also expected are several African leaders such as Zimbabwe's Robert Mugabe and South Africa's Jacob Zuma. Nelson Mandela, while he was still alive, repeatedly thanked Castro for his efforts in helping to weaken apartheid in South Africa.
China is sending Vice President Li Yuanchao, and on Tuesday in Beijing, Chinese President Xi Jinping visited the Cuban embassy to pay his condolences, saying China had lost a "close comrade and real friend", China's foreign ministry said.
Yet few leaders from the world's major powers are heading to the Caribbean island, with many sending second tier officials instead to pay their respects to a man who built a Communist state on the doorstep of the United States.
All schools and government offices will be closed on Tuesday so that Cubans can more easily join the rally and other activities to pay homage to Castro, authorities said.
On Tuesday morning, they will have their last chance to pass by a portrait of the late leader, dressed in military fatigues and carrying a rifle, erected in a memorial to Cuban independence hero Jose Marti in Revolution Square.
Tens of thousands already did so on Monday, some in tears and others wrapped in the red, white and blue national flag. Many state employees and school children came together in groups.
Raul Castro and his top lieutenants held a separate, private ceremony on Monday, laying white flowers in front of Fidel Castro's portrait.
Cubans have also been urged to sign condolence books and pledges of loyalty to Castro's socialist ideology at 1,060 tribute sites throughout the country.
"I signed because he was a good man, we loved him a lot, and I wanted to reaffirm my loyalty to him and his ideas," said Arcide Ge, 56, a security guard. "He was good to everyone, he sent doctors abroad and helped the poor here."
On Wednesday, Castro's ashes will begin a procession east across the country towards Santiago de Cuba, where he launched the revolution.
They will be laid to rest on Sunday, Dec. 4, in the city's Santa Ifigenia cemetery, also the resting place of Marti.
(Additional reporting by Ben Blanchard in Beijing; Editing by Simon Gardner, Kieran Murray and Jaqueline Wong)