The flag-draped coffin of Venezuelan leader Hugo Chavez was borne through throngs of weeping supporters on Wednesday as a nation bade farewell to the firebrand leftist who led them for 14 years.
His mother Elena wept over his wooden casket as a band played the national anthem outside his military hospital. Presidential guards with red berets then placed his remains on top of a black hearse, surrounded by flowers.
Chavez's hand-picked successor, Vice President Nicolas Maduro, walked alongside the car through dense crowds, wearing a somber expression and a striking outfit in the color of the national flag.
Chavez' death after a two-year struggle with cancer was a blow to his adoring supporters and the alliance of left-wing Latin American powers, and plunged his oil-rich country into uncertainty as an election is organized.
His body, surrounded by soldiers, was being taken to the military academy that the former paratrooper colonel once called a second home, where he will lie in state until an official ceremony with foreign dignitaries on Friday.
People watched from their apartment windows, others climbed fences to get a better view of the hearse, many held or wore iconic images of Chavez.
The 58-year-old leader succumbed to a respiratory infection on Tuesday. A new election is due to be called within what are sure to be 30 tense days.
Maduro, who tearfully broke the news to the nation that his mentor had lost his battle with cancer, was poised to take over as interim president and to campaign for election as Chavez's chosen successor.
The death brought thousands of Venezuelans to public squares across the nation, weeping and celebrating the life of a divisive figure whose oil-funded socialist revolution delighted the poor and infuriated the wealthy.
Hundreds of people spent the night in front of his hospital, waving Venezuelan flags and chanting "we are all Chavez!" A banner was hung on the hospital fence, reading "Chavez lives, the battle continues!"
"I love him," said Iris Dicuro, 62, who came from the northeastern city of Puerto La Cruz and wore a shirt with the words "Forward Comandante." "I want to bid farewell because he was a good man who gave everything to the poor."
But not everyone in a country divided by Chavez's populist style agreed, with opposition supporters in better off neighborhoods still angry.
"Hate and division was the only thing that he spread," 28-year-old computer programmer Jose Mendoza told AFP in an eastern Caracas opposition bastion. "They want to make him a martyr. It made me laugh.
"He did a lot of social things, but he could have done much more. He also did a lot of harm because there are no institutions, there is no justice. He mistreated everyone who disagreed with his government."
The armed forces were to fire a 21-gun salute and "there will be a salvo every hour until his burial," Defense Minister Diego Molero said.
Some of Chavez's closest allies had already arrived Wednesday ahead of the state funeral, including Argentina's President Cristina Kirchner, Uruguay's Jose Mujica and Bolivia's Evo Morales.
Maduro said the nation's security forces had been deployed but Foreign Minister Elias Jaua said calm reigned in Venezuela, which was rocked by a short-lived coup against Chavez in 2002.
Venezuela's closest ally, communist Cuba, declared its own mourning period for a leader who helped prop up the island's economy with cheap fuel and cash transfers, and dubbed Chavez a "true son" of revolutionary icon Fidel Castro.
But US President Barack Obama -- often a target of Chavez's anti-American scorn -- was circumspect, pledging the United States would support the "Venezuelan people" and describing Chavez's passing as a "challenging time."
Shortly before Chavez's death was announced, Maduro expelled two US military attaches and accused Venezuela's enemies of somehow afflicting the leftist with the cancer that eventually killed him.
Chavez was showered with tributes from Latin American leaders and Russia, China and Iran also paid tribute to a man who had cultivated close ties with the bugbears of the West as a way of thumbing his nose at Washington.
Iranian President Mahmoud Ahmadinejad said Chavez had fallen "martyr" to a "suspect illness," while hailing his close ally for "serving the people of Venezuela and defending human and revolutionary values."
And beleaguered Syrian strongman Bashar al-Assad took time off from attempting to crush a revolt against his brutal rule to dub Chavez's death "a great loss for me personally and the Syrian people."
Chavez had checked into the hospital on February 18 for a course of chemotherapy after spending two months in Cuba, where in December he had undergone his fourth round of cancer surgery since June 2011.
A new election could offer another shot at the presidency to Henrique Capriles, the opposition leader who lost to Chavez in October but insisted Tuesday that the two men were "adversaries, but never enemies."
Luis Vicente Leon, director of the polling group Datanalisis, said the government will likely want to hold elections as early as possible "to take advantage electorally of the emotion generated by the president's death."
Chavez died five months after winning re-election, overcoming public frustration over a rising murder rate, regular blackouts and soaring inflation.
He missed his swearing-in for a new six-year term on January 10, but the Supreme Court approved an indefinite delay.