Brazil's bitterly divisive presidential election is headed for a runoff on October 30 as incumbent Jair Bolsonaro beat first-round expectations to finish a closer-than-expected second to front-runner Luiz Inacio Lula da Silva.
Lula, the veteran leftist seeking a presidential comeback, had 48.3 percent of the vote to 43.3 percent for the far-right president with over 99 percent of polling stations reporting, according to the Superior Electoral Tribunal.
At least 50 percent of votes had been needed to avoid a runoff.
It was an unexpectedly strong result for combative ex-army captain Bolsonaro -- and for Brazil's far-right, which also had surprise good showings in a series of key Congressional and governors' races.
Lula, the popular but tarnished ex-president who led Brazil from 2003 to 2010, had been the favorite to win the race -- possibly in a single round.
On the eve of the election, leading polling firm Datafolha had given Lula 50 percent of the vote to 36 percent for Bolsonaro.
Instead, the Latin American giant's polarizing campaign will now enter a new phase as Bolsonaro, 67, and Lula, 76, dig in for a four-week fight to the final bell.
In Bolsonaro's camp, the mood was celebratory.
"I called it: I said Datafolha would get it wrong, again," Bolsonaro's congressman son Eduardo wrote on Twitter.
'What's happening to Brazil?'
Lula rallied his disappointed backers, vowing: "we are going to win these elections" in a speech to hundreds of supporters decked out in Workers' Party red on Sao Paulo's main avenue.
"We're going to keep fighting until the final victory," he said.
"There's no comparison between the Brazil (Bolsonaro) has built and the one we did."
But the result fell short of expectations for his backers, who were left fearing an ugly runoff race.
"It's going to be a difficult campaign," said Lula fan Viviane Laureano da Silva, who had gathered with hundreds of other supporters for what they hoped would be a first-round victory celebration in central Rio de Janeiro.
"But Lula's going to win. I'm from the slums, and I've seen how people there support him," said the 36-year-old civil servant.
"I don't know what's happening to Brazil. Fifty percent of our population is sick. Lula is the only one who can heal our people," said Jose Antonio Benedetto, 63, who was carrying a banner reading "Love and truth will prevail" in Sao Paulo.
Far-right flexes muscles
Lula, an ex-metalworker who rose from destitute poverty to become the most popular president in Brazilian history, is seeking to stage a return after falling spectacularly from grace and spending 18 months in jail.
Convicted in a massive graft scheme involving state-run oil company Petrobras, he regained the right to run for office last year when the Supreme Court quashed his convictions.
Bolsonaro, who swept to office in 2018 on a wave of anti-establishment outrage, has lost support from the political center with his pugnacious political style, his performance on the weak economy, surging Amazon rainforest destruction and the carnage of Covid-19.
But he still has the die-hard backing of his "Bibles, bullets and beef" base -- Evangelical Christians, security hardliners and the powerful agribusiness sector.
It was a good night for Brazil's far-right.
A string of former Bolsonaro cabinet ministers and other allies won clutch races for the lower house, Senate and governorships, including a Senate seat for controversial former women's minister Damares Alves in Brasilia.
In the key race for governor in Sao Paulo, the most populous state and industrial capital, Bolsonaro's former infrastructure minister Tarcisio de Freitas shattered forecasts to take 42.6 percent of the vote to 35.5 percent for Lula ally Fernando Haddad, whom he will face in a runoff.
"'Bolsonarismo' won this first round. It comes stronger in Congress and the Senate. Not to mention the expanded basis of support with state governors. We will have a second round in a radically polarized environment," said Bruna Santos, an analyst at the Wilson Center think tank's Brazil Institute.
Bolsonaro himself emerged looking strengthened, analysts said.
"Bolsonaro could make this a contest. Instead of the great comeback (for Lula), it could be the great upset," said Michael Shifter of the Inter-American Dialogue think tank.
In the run-up to the vote, Bolsonaro had spent months attacking Brazil's electronic voting system as fraud-prone, raising fears of a Brazilian version of the riots at the US Capitol last year after his political role model, former president Donald Trump, refused to accept his election loss.
All eyes will now be on how he plays the reconfigured course from here.