Antananarivo - Former Madagascan president Andry Rajoelina has beaten his rival and predecessor Marc Ravalomanana in an election beset by allegations of fraud from both sides, the electoral commission said yesterday.
Rajoelina has returned to power after he won 55.66 percent against 44.34 percent for Ravalomanana, it said.
The results, announced under high security, may be contested after Ravalomanana claimed fraud.
Rajoelina called for unity and a peaceful transfer of power as he thanked those who voted for him and those who did not.
"I already came first in the first round, and the people of Madagascar have confirmed my victory in this second round," said Rajoelina after the proclamation of the complete results.
"What matters is that the people of Madagascar were able to express themselves freely," he added. "My message is simple, the people of Madagascar no longer need a crisis, they need a wise, unifying leader".
Rajoelina, 44, sat in the front row among the 200 guests in the room where the electoral commission announced the results.
A seat next to him, apparently reserved for Ravalomanana, was empty, according to an AFP journalist.
"It's unfortunate that the other candidate is not here," the president of the electoral commission, Hery Rakotomanana, said.
The electoral commission chief said "efforts were made to respond" to concerns raised by both candidates, which included a review of the counting software.
The two-round election was plagued by mutual accusations of vote-rigging in a country with a long history of instability.
Heavily-armed police patrolled the area around the electoral commission offices where the results were being announced.
Rajoelina and Ravalomanana are former presidents and long-time rivals who have fought a fiercely personal duel for power.
They each spent lavishly on campaigning, with promises and handouts distributed liberally to voters, who are among the poorest in Africa.
- 'Vote-rigging' -
The European Union (EU) election observers have said they had not seen evidence of wrongdoing in the vote in which about five million ballots were cast.
Ravalomanana, a 69-year-old former milkman who built a business empire, had on Sunday urged supporters to protest what he called "injustice and a violation of their right to vote".
Elected president in 2002, he was forced to resign seven years later following protests fuelled by Rajoelina, who had been elected mayor of the capital Antananarivo.
Rajoelina was then installed by the army and ruled until 2014.
He is a former events planner and successful entrepreneur with slick communication skills.
The two adversaries came a close first and second in the preliminary election in November, with Rajoelina garnering 39 percent compared with 35 percent for Ravalomanana.
The two candidates were both banned from running in the 2013 election as part of an agreement to end recurring crises that have rocked Madagascar since independence from France in 1960.
Outgoing president Hery Rajaonarimampianina was eliminated in the first round after winning only nine percent.
Just under half or 48.09 percent of the eligible 10 million voters bothered to cast their votes, slightly lower than in the first round which saw around 55 percent turning out.
The country's High Constitutional Court has nine days to officially declare the name of the new leader after examining any petitions.
Madagascar is well known for its vanilla and precious redwood, yet is one of the world's poorest nations, according to World Bank data, with 76 percent of people living in extreme poverty.
The island, which is also famed for its unique wildlife, is dependent on foreign aid and burdened by a long history of coups and unrest.