Brazil's Supreme Electoral Tribunal has declared far-right congressman Jair Bolsonaro the next president of Latin America's biggest country.
With 96 percent of ballots counted, Bolsonaro has 55.5 percent of the votes. Leftist Fernando Haddad of the Workers' Party (PT) has 44.5 percent.
Voters in Sunday's runoff election apparently looked past warnings that the brash former army captain would erode democracy and embraced a chance for radical change after years of turmoil.
Bolsonaro pledged to reform government finances and reorient diplomatic relations in his first public comments on Sunday after winning the polarizing run-off vote.
Bolsonaro said he would begin a virtuous cycle of lower deficits, shrinking public debts and lower interest rates. He also pledged to align Brazil with more advanced countries that can offer the benefits of trade and technology, reversing what he called a recent political bias in diplomatic relations.
Many Brazilians are concerned that 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.