Deciphering the ecological roles of plant secondary metabolites requires integrative studies that assess both the allocation patterns of compounds and their bioactivity in ecological interactions. Secondary metabolites have been primarily studied in leaves, but many are unique to fruits and can have numerous potential roles in interactions with both mutualists (seed dispersers) and antagonists (pathogens and predators). We described 10 alkenylphenol compounds from the plant species Piper sancti-felicis (Piperaceae), quantified their patterns of intraplant allocation across tissues and fruit development, and examined their ecological role in fruit interactions. We found that unripe and ripe fruit pulp had the highest concentrations and diversity of alkenylphenols, followed by flowers; leaves and seeds had only a few compounds at detectable concentrations. We observed a nonlinear pattern of alkenylphenol allocation across fruit development, increasing as flowers developed into unripe pulp then decreasing as pulp ripened. This pattern is consistent with the hypothesis that alkenylphenols function to defend fruits from pre-dispersal antagonists and are allocated based on the contribution of the tissue to the plant's fitness, but could also be explained by non-adaptive constraints. To assess the impacts of alkenylphenols in interactions with antagonists and mutualists, we performed fungal bioassays, field observations, and vertebrate feeding experiments. In fungal bioassays, we found that alkenylphenols had a negative effect on the growth of most fungal taxa. In field observations, nocturnal dispersers (bats) removed the majority of infructescences, and diurnal dispersers (birds) removed a larger proportion of unripe infructescences. In feeding experiments, bats exhibited an aversion to alkenylphenols, but birds did not. This observed behavior in bats, combined with our results showing a decrease in alkenylphenols during ripening, suggests that alkenylphenols in fruits represent a trade-off (defending against pathogens but reducing disperser preference). These results provide insight into the ecological significance of a little studied class of secondary metabolites in seed dispersal and fruit defense. More generally, documenting intraplant spatiotemporal allocation patterns in angiosperms and examining mechanisms behind these patterns with ecological experiments is likely to further our understanding of the evolutionary ecology of plant chemical traits.