Former Army captain Jair Bolsonaro has won Brazil's presidential election, riding a wave of frustration over corruption and crime that brought a dramatic swing to the right in the world's fourth-largest democracy.

With 94% of the ballots counted, Mr Bolsonaro had 56% of the votes in the run-off election against left-wing hopeful Fernando Haddad of the Workers Party (PT), who had 44%, according to the electoral authority TSE.

Mr Bolsonaro's rise has been propelled by rejection of the leftist PT that ran Brazil for 13 of the last 15 years and was ousted two years ago in the midst of a deep recession and political graft scandal.

Laura Chinchilla, the former president of Costa Rica who is head of the Organization of American States' Electoral Observation Mission, said the vote had been calm and orderly across the country, which has suffered a spate of partisan violence during the campaign.

Many Brazilians are concerned that Mr Bolsonaro, an admirer of Brazil's 1964-1985 military dictatorship and a defender of its use of torture on leftist opponents, will trample on human rights, curtail civil liberties and muzzle freedom of speech.

The 63-year-old seven-term congressman has vowed to crackdown on crime in Brazil's cities and farm belt by granting police more autonomy to shoot at criminals. He also wants to let more Brazilians buy weapons to fight crime.

The president-elect vowed to "change Brazil's destiny together" after the far-right former army captain won a polarizing run-off election Sunday against leftist Fernando Haddad.
His victory speech, broadcast live on Facebook, was also marked by more divisive moments: he pledged to govern "following the Bible and the constitution," and said "we cannot continue flirting with socialism, with communism, populism and the extremism of the left."

Read more:
Brazil's Bolsonaro poised to win presidency in dramatic swing right
All you need to know about Brazil's divisive election