What are the ecological causes and consequences of variation in phytochemical diversity within and between plant taxa? Despite decades of natural products discovery by organic chemists and research by chemical ecologists, our understanding of phytochemically mediated ecological processes in natural communities has been restricted to studies of either broad classes of compounds or a small number of well-characterized molecules. Until now, no studies have assessed the ecological causes or consequences of rigorously quantified phytochemical diversity across taxa in natural systems. Consequently, hypotheses that attempt to explain variation in phytochemical diversity among plants remain largely untested. We use spectral data from crude plant extracts to characterize phytochemical diversity in a suite of co-occurring plants in the tropical genus Piper (Piperaceae). In combination with 20 years of data focused on Piper-associated insects, we find that phytochemical diversity has a direct and positive effect on the diversity of herbivores but also reduces overall herbivore damage. Elevated chemical diversity is associated with more specialized assemblages of herbivores, and the cascading positive effect of phytochemistry on herbivore enemies is stronger as herbivore diet breadth narrows. These results are consistent with traditional hypotheses that predict positive associations between plant chemical diversity, insect herbivore diversity, and trophic specialization. It is clear from these results that high phytochemical diversity not only enhances the diversity of plant-associated insects but also contributes to the ecological predominance of specialized insect herbivores.he Anthropocene has been characterized by huge losses of biodiversity caused by rapid global change, including habitat loss, fragmentation, invasive species, and climate change. Ecologists struggle to understand not only the consequences of diversity loss but also how to quantify ecologically relevant dimensions of diversity, including genetic, taxonomic, and functional diversity. Although it has been difficult to measure, phytochemical diversity (i.e., richness and abundance of plant compounds) is a key axis of functional diversity (1) that affects associated trophic levels and is likely driving other aspects of biodiversity (2-4). Variation in phytochemical or metabolic diversity in plants, which is further downstream than genomic, transcriptomic, or proteomic diversity (5, 6), potentially reflects variation in response to a diversity of natural enemies, including specialist and generalist insect herbivores (7,8). Furthermore, phytochemistry is one of the most relevant traits to measure when determining functional roles of plants in natural and managed communities (9).Considering the importance of phytochemical diversity for numerous natural processes, it is not surprising that a broad range of ecological and evolutionary hypotheses has been proposed to explain their role in interactions between plants and herbivores. From a coevolutionary perspecti...