Abdulla Yameen had 51.3% of the vote compared with 48.6% for ex-President Mohamed Nasheed, with 98% of ballots counted, the Election Commission said.
Mohamed Nasheed had won 47% in the first round this month, just short of the 50% needed for outright victory, in an election process mired in controversy.
Abdulla Yameen is half-brother to Maumoon Abdul Gayoom, who ruled for 30 years.
Imad Masood, a spokesman for outgoing President Mohamed Waheed, told Reuters there were “four more boxes yet to be counted, but they won’t make any difference to the final results”.
There have been months of legal and political wrangling over the election, causing concern among foreign diplomats.
One result was annulled and two votes cancelled by the courts.
Mohamed Nasheed had been seeking to regain power after he was forced to resign in 2012.
Image source: Wikimedia Commons President-elect Donald Trump celebrated his election victory at the Ultimate Fighting…
Millions of voters across the US chose to return Donald Trump to the White House…
Donald Trump declares victory in the US election as he addresses jubilant supporters in Florida.…
Stocks around the world are rising as Donald Trump appears to be on the cusp…
Donald Trump has won Pennsylvania, North Carolina and Georgia and taken a lead over Kamala…
Quincy Jones, the celebrated musician and producer who worked with Michael Jackson, Frank Sinatra, Ray…