The coffin of Venezuelan leader Hugo Chavez was taken Wednesday to a military academy where he will lie in state for three days, as throngs of weeping supporters swarmed Caracas streets to bid farewell.
Hundreds of thousands waved flags and chanted "Chavez lives" as his hearse crawled across the capital in a seven-hour trip from the hospital where he died to the academy he once called his second home.
The commander's hand-picked successor, Vice President Nicolas Maduro, walked alongside the car, wearing a somber expression and the colors of the national flag, in what was in effect the first appearance in his election campaign.
He was accompanied the length of the route under a baking sun by Bolivia's President Evo Morales, cheered on by huge crowds.
Once at the academy, people sang the national anthem while soldiers removed flowers and mementos thrown on to the wooden casket by the crowd.
The coffin was then ushered inside, with his grieving mother Elena covering her face with a white handkerchief, alongside Chavez's three daughters and somber-faced son, Huguito.
Chavez's death after a near two-year struggle with cancer was a blow to his supporters and to the alliance of left-wing Latin American powers, and plunged his resource-rich country into uncertainty as an election is organized.
Under Chavez, Venezuela's oil wealth has underwritten the Castro brothers' communist rule in Cuba and he repeatedly courted confrontation with Washington by cozying up to anti-Western governments in Russia, Syria and Iran.
His body, surrounded by soldiers en route to the military academy where the paratrooper found his political calling as a young man, will lie in state until an official ceremony with foreign dignitaries on Friday.
People watched from their apartment windows while others climbed fences to get a better view of the hearse. Many held or wore iconic images of Chavez.
"We will carry him in our hearts forever. We're going forward until death with him," said Jose Viloria, 64, an agricultural trader, as the president's coffin made its way along a packed avenue under a hillside slum that was a bastion of support.
The 58-year-old leader died Tuesday, weakened by a respiratory infection after a fourth round of cancer surgery. A new election is due to be called within what are sure to be 30 tense days.
Maduro, who on Tuesday tearfully broke the news to the nation that his mentor had died, has taken over as interim president and will campaign for election as Chavez's chosen successor.
The death brought thousands of Venezuelans to public squares across the country, weeping and celebrating the life of a man whose oil-funded socialist revolution delighted the poor and infuriated the wealthy.
But in a country divided by Chavez's populist style, not everyone agreed on his legacy, 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."
Some of Chavez's closest Latin American allies had already arrived Wednesday ahead of the state funeral, including Morales, Argentine President Cristina Kirchner and Uruguay's Jose Mujica.
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, Cuba, declared its own three-day mourning period and dubbed Chavez a "true son" of revolutionary icon Fidel Castro. Eight other Latin American countries followed suit.
But US President Barack Obama -- once branded a "poor ignorant person" by Chavez -- was circumspect, pledging American support for the "Venezuelan people" while expressing the hope that relations might now improve.
Shortly before Chavez's death was announced, Maduro expelled two US military attaches and accused Venezuela's enemies of somehow afflicting the leftist president with the cancer that eventually killed him.
Chavez was showered with tributes from Latin American leaders. Russia, China and Iran also hailed a man who had cultivated close ties with the bugbears of the West as a way of thumbing his nose at Washington.
And beleaguered Syrian President Bashar al-Assad, who is trying to crush a revolt against his brutal rule, dubbed Chavez's death "a great loss for me personally and the Syrian people."
Chavez had checked into the Caracas hospital on February 18 for a course of chemotherapy after spending two months in Cuba for cancer treatment.
A new election could offer another shot at the presidency to Henrique Capriles, the opposition leader who lost to Chavez in October.
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 overcame public frustration over a rising murder rate, regular blackouts and soaring inflation, to win last year's polls.
He missed his swearing-in for a new six-year term on January 10, but the Supreme Court approved an indefinite delay.