Brazil has taken a turn to the left as former president Luiz Inácio Lula da Silva beat far-right incumbent Jair Bolsonaro in the presidential election.
After a divisive campaign which saw two bitter rivals on opposite sides of the political spectrum go head to head, Lula won 50.9% of the votes.
It is a stunning comeback for a politician who could not run in the last presidential election in 2018 because he was in jail and banned from standing for office.
He had been found guilty of receiving a bribe from a Brazilian construction firm in return for contracts with Brazil's state oil company Petrobras.
Lula spent 580 days in jail before his conviction was annulled and he returned to the political fray. "They tried to bury me alive and here I am," he said
Since the announcement, congratulations have been coming in from leaders around the world, including US President Joe Biden
Russian President Vladimir Putin also offered his "sincere congratulations", saying the results had confirmed Lula's "impressive political authority".