The Nairobi Metropolitan Services (NMS) has no legal basis, the High Court in Nairobi has ruled.
In the petition filed by the Law Society of Kenya (LSK), the court declared the entity unconstitutional, null and void.
NMS was founded by President Uhuru Kenyatta in March 2020 after signing an agreement with the then Nairobi Governor Mike Sonko.
The President appointed Major-General Mohamed Badi its Director-General.
Four key dockets, namely health, transport, public works and planning and development were handed to the agency.
However, Badi took full charge of City Hall in December last year following the impeachment of Sonko.
In June last year, Employment and Labour Relations Court Judge Hellen Wasilwa declared the NMS illegal. However, in September she reversed her earlier decision.
Recently, President Kenyatta attacked the Judiciary over constitutional rigidity and failing to consider public interest while making verdicts.
Speaking during the Madaraka Day celebrations, the Head of State implied that he would at times be compelled to ignore court orders.