Harsh environmental conditions limit how species use the landscape, strongly influencing the way assemblages are distributed. In the wake of repeated coral bleaching mortalities in Lakshadweep, we examined how wave exposure influences herbivory in exposed and sheltered reefs. We used a combination of i. field observations of fish herbivore composition, abundance and activity across 6 exposed and 6 sheltered reefs; ii. experimental manipulations in a subset of these reefs (herbivore exclosures); and iii. opportunistic observations of fish recruitment, to determine how exposure influences herbivore biomass and herbivory. Species richness, biomass, abundance, total bite rates and species-specific per capita bite rates were lower in exposed compared to sheltered reefs, linked to strong environmental filtering of species composition, abundance and behaviour. For some critical species, this environmental filtering begins with differential recruitment and post-recruitment processes between exposures. Bite rates at sheltered sites were dominated by just a few species, most being laterally compressed surgeonfish that may find it difficult accessing or surviving in wave-battered shallow reefs. Exclosure experiments confirmed that exposed reefs were less controlled by herbivores than sheltered reefs. In post-disturbed reefs like Lakshadweep, environmental gradients appear to be key mediators of critical functions like herbivory by determining species composition, abundance and behaviour. At harsh environmental extremes, most biotic interactions are likely overwhelmed by species' abilities to cope with challenging conditions. Since not all species can survive extreme conditions, communities may be more abiotically assembled as less tolerant species drop out. Filtering by the environment appears to be widespread, shaping assemblages as widely different as bacteria, fungi, plants, birds and bees, among others 1-6. In addition, for the species that do persist, several modifications in behaviour and physiology may occur, often with longer-term life-history and demographic consequences. Sessile organisms may respond with morphological changes (e.g. increased anchorage systems, modified structural forms, change in leaf morphology) that allow them to withstand physical forces like wind, desiccation, wave exposure, etc. 7-9. Mobile species may change how they use the landscape, modifying their morphology, movement or foraging behaviour to persist in high wind or wave swept locations 10,11. How species navigate environmental conditions can have major consequences for the way functions (such as herbivory and predation) are distributed across an ecosystem. A selective reduction in species richness and population abundance, together with reduced foraging and movement across the landscape, can result in a potential