- Grazing plays an important role in shaping ecological communities in human-related ecosystems. Although myriad studies have explored the joint effect of grazing and climate on plant communities, this interactive effect has rarely been studied in animals. We hypothesized that the effect of grazing on the reptile community varies along a climatic gradient in relation to the effect of grazing on habitat characteristics, and that grazing differentially affects reptiles of different biogeographic regions. We tested our hypotheses by collecting data on environmental characteristics and by trapping reptiles in four heterogeneous landscapes experiencing differing grazing intensities and distributed along a sharp climatic gradient. We found that while reptile diversity increased with grazing intensity at the mesic end of the gradient, it decreased with grazing intensity at the arid end. Moreover, the proportion of reptile species of differing biogeographic origins varied with the interactive effect of climate and grazing. The representation of species originating in arid biogeographic zones was highest at the arid end of the climatic gradient, and representation increased with grazing intensity within this area. Regardless of the climatic context, increased grazing pressure results in a reduction in vegetation cover and thus in changes in habitat characteristics. By reducing vegetation cover, grazing increased habitat heterogeneity in the dense mesic sites and decreased habitat heterogeneity in the arid sites. Thus, our results suggest that the same direction of habitat alteration caused by grazing may have opposite effects on biodiversity and community composition in different climatic contexts.