Luis Inacio Lula da Silva on Sunday narrowly defeated President Jair Bolsonaro in a runoff election that marked a stunning comeback for the leftist former president and the end of Brazil's most right-wing government in decades.
The Supreme Electoral Court declared Lula the next president, with 50.9% of votes compared with 49.1% for Bolsonaro. The 77-year-old Lula's inauguration is scheduled for January 1.
The vote was a rebuke for the fiery far-right populism of Bolsonaro, who emerged from the back benches of Congress to forge a novel conservative coalition but lost support as Brazil ran up one of the worst death tolls of the coronavirus pandemic.
Lula, in a speech on Sunday night, said he would unite a divided country and ensure that Brazilians "put down arms that never should have been taken up," while inviting international cooperation to preserve the Amazon rainforest and make global trade more fair.
"I will govern for 215 million Brazilians, and not just for those who voted for me," Lula said at his campaign headquarters. "There are not two Brazils. We are one country, one people, one great nation."
Lula arrived at a rally in Sao Paulo shortly after 8:00 pm (1100 GMT), waving from the sunroof of a car. Ecstatic supporters near Paulista Avenue waited for him, chanting slogans and drinking champagne.
Vice President-elect Geraldo Alckmin and campaign aides jumped up and down chanting, "It's time Jair, it's time to leave already," in a video circulating on social media.
US President Joe Biden congratulated Brazilian President-elect Luiz Inacio Lula da Silva for his victory on Sunday in "free, fair and credible elections," and said he looks forward to continued cooperation between the countries.


US Epstein files release highlights Clinton, makes scant reference to Trump
US hits ISIS in Syria with large retaliatory strikes, officials say
Nine injured in attack in Taipei, media reports
Putin offers no compromise on Ukraine, says EU 'robbery' failed
Bangladesh rocked by unrest after death of student leader
Suspected gunman in Brown University shooting found dead
Ukraine's Zelenskyy meets Poland's Trump-backed president at key moment in war
No evidence alleged Bondi gunmen received military training in Philippines
