Abstract Studies have suggested that the quality of the lands surrounding habitat patches can modify the effects of habitat loss and fragmentation on species and influence biodiversity predictions across regions. As landscape matrices tend to be complex and vary with habitat change, isolating such effects is challenging. Here we disentangle the effects of habitat loss, fragmentation and surrounding landscape quality in a large, multiscale manipulative experiment on a plant–herbivore system.