We report evidence of hierarchical resource selection by large herbivores and plant neighbouring effects in a Mediterranean ecosystem. Plant palatability was assessed according to herbivore foraging decisions. We hypothesize that under natural conditions large herbivores follow a hierarchical foraging pattern, starting at the landscape scale, and then selecting patches and individual plants. A between- and within-patch selection study was carried out in an area formed by scrubland and pasture patches, connected by habitat edges. With regard to between-patch selection, quality-dependent resource selection is reported: herbivores mainly consume pasture in spring and woody plants in winter. Within-patch selection was also observed in scrub habitats, influenced by season, relative patch palatability and edge effect. We defined a Proximity Index (PI) between palatable and unpalatable plants, which allowed verification of neighbouring effects. In spring, when the preferred food resource (i.e. herbs) is abundant, we observed that in habitat edges large herbivores basically select the relatively scarce palatable shrubs, whereas inside scrubland, unpalatable shrub consumption was related to increasing PI. In winter, a very different picture was observed; there was low consumption of palatable species surrounded by unpalatable species in habitat edges, where the latter were more abundant. These outcomes could be explained though different plant associations described in the literature. We conclude that optimal foraging theory provides a conceptual framework behind the observed interactions between plants and large herbivores in Mediterranean ecosystems.