Urban Agriculture in Nairobi: How City Farmers Are Feeding Communities and Building Sustainable Livelihoods
Urban Agriculture in Nairobi: How City Farmers Are Feeding a Growing Metropolis
Urban agriculture has quietly become one of the most important features of Nairobi's food system, with city farmers contributing an estimated 50,000 bags of maize, 15,000 bags of beans, a quarter million chickens, approximately 45,000 goats and sheep, and 42 million litres of milk annually. In a metropolis where rapid population growth has outpaced food distribution infrastructure and where 85% of residents in informal settlements like Kibera face chronic hunger, farming within the city is not a quaint hobby — it is a survival strategy for hundreds of thousands of households. From sack gardens on Kibera rooftops to hydroponic systems in Westlands apartments, urban agriculture in Nairobi represents one of the most innovative and essential responses to food insecurity in any African city.
The Urban Agriculture Promotion and Regulation Act 2015
Nairobi County passed the Urban Agriculture Promotion and Regulation Act in 2015, a landmark law that legalized and regulated farming within the city. Before this legislation, urban farming existed in a legal grey zone — widely practiced but technically prohibited under colonial-era bylaws that classified agriculture as incompatible with urban land use. The 2015 Act recognized innovative forms of urban farming including rooftop gardens, aquaponics, and hydroponics, introduced licensing frameworks for livestock and crop farming, established food safety guidelines, and mandated county authorities to provide water and space for food production in informal settlements.
The Act was pioneering in the African context, providing one of the continent's most comprehensive regulatory frameworks for urban agriculture. International observers noted that Nairobi established a framework from which urban agriculture could flourish, giving farmers legitimacy and legal protection while addressing concerns about food safety, land use conflicts, and environmental sustainability. However, implementation has been uneven, with many urban farmers remaining unaware of the licensing requirements and county enforcement capacity limited by budgetary constraints.
Sack Gardens and Vertical Farming in Informal Settlements
In Nairobi's densely packed informal settlements — where an estimated 60% of the city's population lives on less than 5% of its land — space for traditional farming simply does not exist. Residents have responded with remarkable ingenuity, adopting vertical gardening techniques including sack farming, hanging containers, and vertical towers as practical solutions for food production. Sack gardening involves filling large sacks with soil and organic waste, then growing leafy vegetables such as kale, spinach, and amaranth vertically on rooftops, balconies, along fences, and in narrow alleyways between structures.
More than a thousand residents across Kibera's villages have adopted sack farming with support from local NGOs and government programmes. Research from Nairobi's informal settlements has demonstrated that vertical gardening significantly undergirds household food security, reducing food expenditure by providing fresh vegetables that would otherwise need to be purchased from markets where prices fluctuate with supply disruptions and seasonal availability. The social benefits extend beyond nutrition: community gardens create gathering spaces, provide productive activity for youth who might otherwise be idle, and foster cooperation among neighbours.
Modern Urban Farming Technologies
Beyond the sack gardens of informal settlements, Nairobi is seeing the adoption of increasingly sophisticated urban farming technologies. Vertical farming using controlled-environment agriculture (CEA) systems — including hydroponics (growing plants in nutrient-rich water without soil), aquaponics (combining fish farming with hydroponic plant production), and aeroponics (growing plants in air mist) — is emerging as a commercial opportunity for entrepreneurial Nairobians.
These systems can produce up to ten times more food per square metre than traditional farming methods while using 90% less water. Several Nairobi-based startups are developing modular vertical farming units designed for urban homes, restaurants, and institutional buyers. Greenhouse farming in peri-urban zones around Nairobi is expanding rapidly, with county governments encouraging adoption of protected cultivation technologies that allow year-round production of high-value crops including tomatoes, peppers, herbs, and strawberries. Nairobi County has also piloted rooftop gardens on public buildings, demonstrating the potential for integrating food production into existing urban infrastructure.
Livestock Keeping in the City
Urban livestock keeping is a significant but often overlooked component of Nairobi's food system. Poultry keeping is the most widespread form, with thousands of households maintaining small flocks of chickens for eggs and meat. Dairy cattle are kept in zero-grazing units across peri-urban areas, producing a substantial portion of the milk consumed in the city. Goat and sheep rearing, beekeeping, and even rabbit farming contribute to household nutrition and income. The 2015 Act established licensing requirements for urban livestock keepers, addressing concerns about animal welfare, disease control, noise, and waste management that had created tensions between farmers and non-farming neighbours.
Food Safety and Environmental Challenges
Urban agriculture in Nairobi operates in an environment fraught with food safety and environmental risks. Contaminated soils — from industrial pollution, vehicle emissions, and improper waste disposal — pose risks of heavy metal accumulation in crops. Irrigation with polluted water from Nairobi's rivers and streams can introduce pathogens and chemical contaminants into the food chain. The use of untreated sewage water for irrigation, while common in some areas, raises serious public health concerns.
Addressing these challenges requires investment in soil testing services accessible to urban farmers, promotion of raised-bed and container gardening that isolates crops from contaminated ground soil, expansion of clean water access for irrigation, and enforcement of food safety standards at the point of sale. The Food and Agriculture Organization (FAO) has highlighted Nairobi's urban farming and food security linkages, emphasizing the need for integrated approaches that address both productivity and safety.
Land Tenure and the Threat of Displacement
Insecure land tenure remains the most pressing challenge for urban farmers in Nairobi, particularly in informal settlements where most residents do not own the plots they cultivate. Gardens are vulnerable to eviction, displacement by construction projects, and land grabbing. The absence of formal land rights means that farmers cannot invest in permanent infrastructure such as irrigation systems, greenhouses, or improved soil, limiting productivity and discouraging long-term investment. Integrating urban agriculture into Nairobi's spatial planning and land use frameworks — recognizing food production as a legitimate and essential urban land use — is critical for the sector's sustainability.
The Future of Urban Farming in Nairobi
Nairobi's urban agriculture sector stands at a crossroads between its grassroots origins and a technology-driven future. As the city's population continues to grow — projected to reach 8 million by 2030 — the pressure on food systems will only intensify. Climate change is disrupting agricultural production in Kenya's traditional farming regions, making urban food production an increasingly important buffer against supply shocks and price spikes. Success will require sustained policy support, investment in clean water and soil remediation, integration of urban agriculture into city planning, protection of farmers' land rights, and support for the adoption of space-efficient technologies that can produce more food on less land with fewer resources.
More Articles
How to Verify and Authenticate Kenyan Academic Certificates for Use Abroad
Feb 21, 2026
How to Transfer Property Ownership in Kenya: Title Deed Transfers for Diaspora Kenyans
Feb 21, 2026
Applying for a Kenyan Visa for Your Foreign Spouse: Marriage Visas, Dependent Passes, and Residency
Feb 21, 2026
How to Resolve Land Disputes in Kenya from the Diaspora: Courts, Mediation, and Protecting Your Property
Feb 21, 2026
Attending Funerals and Cultural Ceremonies in Kenya When You Cannot Travel: How to Participate from Abroad
Feb 21, 2026