Habitat loss and disease are main drivers of global amphibian declines, yet the interaction between them remains largely unexplored. Here we show that paradoxically, habitat loss is negatively associated with occurrence, prevalence, and infection intensity of the chytrid fungus Batrachochytrium dendrobatidis (Bd) in amphibian populations in the tropics. At a large spatial scale, increased habitat loss predicted lower disease risk in amphibian populations across Costa Rica and eastern Australia, even after jointly considering the effect of potential biotic and abiotic correlates. Lower host-species richness and suboptimal microclimates for Bd in disturbed habitats are potential mechanisms underlying this pattern. Furthermore, we found that anthropogenic deforestation practices biased to lowlands and natural vegetation remaining in inaccessible highlands explain increased Bd occurrence at higher elevations. At a smaller spatial scale, holding constant elevation, latitude, and macroclimate, we also found a negative relationship between habitat loss, and both Bd prevalence and infection intensity in frog populations in two landscapes of the Brazilian Atlantic Forest. Our results indicate that amphibians will be disproportionately affected by emerging diseases in pristine environments, and that, paradoxically, disturbed habitats may act as shelters from disease, but only for the very few species that can tolerate deforestation. Thus, tropical amphibian faunas are threatened both by destruction of natural habitats as well as increased disease in pristine forests. To curb further extinctions and develop effective mitigation and restoration programs we must look to interactions between habitat loss and disease, the two main factors at the root of global amphibian declines.chytridiomycosis | species diversity | anurans | Neotropics | pathogen