Prabowo Subianto, a former general with links to the regime of ex-dictator Suharto, had alleged massive fraud in the July 9 polls and filed a complaint in the Constitutional Court. He presented evidence and witness testimony for his claim, but all nine judges at the court ruled it was groundless.
"The ruling is final and binding, but does not necessarily reflect truth or justice," Tantowi Yahya, a spokesman for a coalition of political parties supporting Subianto, told a news conference.
The court's decision had been widely expected given the flimsy evidence presented at the court by the Subianto camp and the number of election votes needed to be overturned to ensure victory. The verdict cannot be appealed.
The election commission declared Widodo the winner with 53 per cent of the votes a margin of more than 8 million.
More From This Section
Subianto's poll showing was stronger than many had predicted at the beginning of the campaign, but his attempt to have the results overturned garnered little public support. It has been widely seen as a face-saving measure by the general, who spent millions of his personal fortune in trying to win the presidency.
Around 2,000 of his supporters rallied in Jakarta ahead of the verdict and tried to get close to the court, which is near the presidential palace. Police fired tear gas and water cannons as a smaller number of demonstrators attempted to tear down barbed wire barricades blocking their way. There were no reports of serious injuries and all had dispersed by the time the verdict was announced.