ABSTRACT: Numerous recent studies have tested the effects of plant, pollinator, and predator diversity on primary productivity, pollination, and consumption, respectively. Many have shown a positive relationship, particularly in controlled experiments, but variability in results has emphasized the context-dependency of these relationships. Complementary resource use may lead to a positive relationship between diversity and these processes, but only when a diverse array of niches is available to be partitioned among species. Therefore, the slope of the diversity-function relationship may change across differing levels of heterogeneity, but empirical evaluations of this pattern are lacking. Here we examine three important functions/properties in different real world (i.e., nonexperimental) ecosystems: plant biomass in German grasslands, parasitism rates across five habitat types in coastal Ecuador, and coffee pollination in agroforestry systems in Indonesia. We use general linear and structural equation modeling to demonstrate that the effect of diversity on these processes is context dependent, such that the slope of this relationship increases in environments where limiting resources (soil nutrients, host insects, and coffee flowers, respectively) are spatially heterogeneous. These real world patterns, combined with previous experiments, suggest that biodiversity may have its greatest impact on the functioning of diverse, naturally heterogeneous ecosystems. Author Summary The world is currently experiencing a rapid loss of species, prompting investigation into the role of biodiversity on the functioning of ecosystems. Many recent studies have shown that high diversity of plants, pollinators, and predators is related to high plant growth, pollination, and predation, respectively. Many of these studies involved controlled experiments, yet results were highly variable, indicating that the environment may affect the relationship between species diversity and these ecosystem functions. In a heterogeneous environment, different species can occupy different microhabitats, or use different resources. This reduces competition between species, and can mean that diverse assemblages perform their ecosystem functions at elevated rates. Here we examine rates of three important functions in different natural, nonexperimental ecosystems: plant biomass production in German grasslands, parasitism rates across five habitat types in coastal Ecuador, and coffee pollination in agroforestry systems in Indonesia. We demonstrate that the effect of diversity on these processes increases in environments where limiting resources (soil nutrients, host insects, and coffee flowers, respectively) are spatially heterogeneous. These real world patterns, combined with previous experiments suggest that biodiversity may have its greatest impact on the functioning of diverse, naturally heterogeneous ecosystems. In heterogeneous natural habitats, diverse plant, pollinator, and parasitoid communities can better partition resources and grow, pollinate, and consume at the highest rate.