Zimbabwe's Constitutional Court unanimously ruled that President Emmerson Mnangagwa was the winner of the 30 July election, dismissing the bid by his rival, Nelson Chamisa, to annul the result.
It opens the way for Mr Mnangagwa's inauguration as Zimbabwe's second elected leader since independence in 1980.
The inauguration ceremony is expected to take place this weekend.