Gabon's veteran President Omar Bongo has won a fresh seven-year term, according to official poll results.
Omar Bongo of Gabon campaigned with his wife (right)
Africa's longest-serving head of state won 79.2% of the vote on Sunday against his four opponents, the interior minister announced on state TV.
His opponents have complained of vote rigging, but Gabon's election commission has said the poll was fair.
After the announcement, police fired teargas at opposition supporters who set up barricades in Port Gentil.
By Wednesday morning, Gabon's second city was reported to be calm.
Mr Bongo came to power in 1967 as head of a one-party state, but he introduced a multi-party system in 1991 and went on to win two elections.
Opposition challenger Pierre Mamboundou won 13.6% of the ballot, according to the official figures cited by the interior minister.
"Therefore Omar Bongo has been elected," Clotaire Ivala said.
Two years ago, constitutional restrictions on how many terms a president may serve were abolished.
Mr Bongo stood on his record of maintaining a stable Gabon in an unstable region - and of bringing prosperity through abundant oil reserves.
Pierre Mamboundou ran against Mr Bongo for a second time
But his opponents accuse him of using the nation's wealth to buy votes.
They point to the dozens of parties supporting the president. Opposition candidates also accused him of disrupting their campaigns.
The extensive use of high-tech advertising glorifying Mr Bongo and the absence of pro-opposition posters illustrated the financial gap between the president and his rivals, the BBC's Christophe Pons in Libreville says.