The court's decision follows a petition filed by the Greenbelt Movement, which opposes the government's plans to encroach on Karura Forest.
The environmental organisation has urged Kenyans to take action and protect Karura, describing it as a vital part of the nation’s heritage.
They say loneliness had pushed them to the home where they now feel abandoned by family.
Stay ahead of the news! Click ‘Yes, Thanks’ to receive breaking stories and exclusive updates directly to your device. Be the first to know what’s happening.