Museveni won 5.85 million votes, or 58.6%, while main opposition candidate Wine had 3.48 million votes (34.8%), the Electoral Commission said at a news conference on the final results from Thursday’s election.
Earlier, Wine accused Museveni of fabricating the results and described the poll as “the most fraudulent election in the history of Uganda”.
In a phone interview before the final results were announced, Wine urged citizens to reject the results.
Wine, a singer-turned-lawmaker, also said his home in the capital, Kampala, was surrounded by hundreds of soldiers and that the military was not allowing him to leave.
The army’s deputy spokesman, Deo Akiiki, told Reuters that security officers at Wine’s house were assessing threats he could face by going out: “So they might be preventing him in the interest of his own safety.”
Museveni, 76 and in power for 35 years, campaigned for another term arguing his long experience in office makes him a good leader and promising to keep delivering stability and progress.
Wine, 38, galvanised young Ugandans with his calls for political change and pledged to end what he calls dictatorship and widespread corruption.
Wine, whose real name is Robert Kyagulanyi, said on Friday he had video proof of voting fraud, and would share the videos as soon as internet connections were restored. The government ordered the internet shut down the day before the election, and the blackout was still in place.
Electoral Commission Chairman Simon Byabakama said on Friday that under Ugandan law, the burden of proof rested with Wine.