The Environment and Land Court in Nairobi has ordered the immediate closure of four bars, B Club, Kiza Restaurant, Space Lounge and Explorers Tavern over noise pollution.
The court declared the clubs business permits illegal.
Justice Loice Komingoi issued the ruling on Monday after Kilimani residents sued pubs over loud music played daily and for hosting rowdy and drunken revelers.
The residents claimed that the loud activities have deprived them of their sleep and security.
Further, the Kilimani residents claimed that the clubs were a bad influence on the moral development of their children.
"Some of the negative effects from the establishment are littering by patrons, obstruction, exposure to immoral and indecent behaviour by the patrons inside their vehicles," the residents claimed.
The value of their property, the tenants claimed, has also depreciated as a result of the nearby degrading activities.
However, the court issued a stay of execution for 30 days.
The closure order is set to be executed by the Nairobi County government, National Environment Management Authority and Nairobi City County Alcoholic Drinks and Licensing Board.