It seems President Uhuru Kenyatta of Kenya has borrowed a leaf from President Trump of the United States after he started calling judges names for making a decision that did not favour him.
He earlier called for calm and said he would respect the ruling but struck a more combative note at a Nairobi rally.
The court cited irregularities in last month’s election and ordered a new one within 60 days.
The poll had raised fears of major violence similar to that following a disputed vote in 2007.
Although the unrest in this year’s vote was not as serious as in 2007, days of sporadic protests left at least 28 people dead.
Kenya’s election commission had declared Mr Kenyatta the winner by a margin of 1.4 million votes but the result was immediately challenged in court by his nearest rival, opposition leader Raila Odinga.
In a ruling on Friday, Chief Justice David Maraga said the 8 August election had not been conducted in accordance with the constitution, declaring it “invalid, null and void”.
The ruling did not attribute any blame to President Kenyatta’s party or campaign.
Mr Odinga, who was in the courtroom, smiled and pumped his fist in the air as the ruling was read out.
Thousands of his supporters took to the streets in celebration.