ABSTRACT: Global environmental changes (GEC) such as climate change (CC) and climate variability have serious impacts in the tropics, particularly in Africa. These are compounded by changes in land use/land cover, which in turn are driven mainly by economic and population growth, and urbanization. These factors create a feedback loop, which affects ecosystems and particularly ecosystem services, for example plant-insect interactions, and by consequence agricultural productivity. We studied effects of GEC at a local level, using a traditional coffee production area in greater Nairobi, Kenya. We chose coffee, the most valuable agricultural commodity worldwide, as it generates income for 100 million people, mainly in the developing world. Using the coffee berry borer, the most serious biotic threat to global coffee production, we show how environmental changes and different production systems (shaded and sun-grown coffee) can affect the crop. We combined detailed entomological assessments with historic climate records (from 1929-2011), and spatial and demographic data, to assess GEC's impact on coffee at a local scale. Additionally, we tested the utility of an adaptation strategy that is simple and easy to implement. Our results show that while interactions between CC and migration/urbanization, with its resultant landscape modifications, create a feedback loop whereby agroecosystems such as coffee are adversely affected, bio-diverse shaded coffee proved far more resilient and productive than coffee grown in monoculture, and was significantly less harmed by its insect pest. Thus, a relatively simple strategy such as shading coffee can tremendously improve resilience of agro-ecosystems, providing small-scale farmers in Africa with an easily implemented tool to safeguard their livelihoods in a changing climate.