As the Earth warms, many species are likely to disappear, often because of changing disease dynamics. Here we show that a recent mass extinction associated with pathogen outbreaks is tied to global warming. Seventeen years ago, in the mountains of Costa Rica, the Monteverde harlequin frog (Atelopus sp.) vanished along with the golden toad (Bufo periglenes). An estimated 67% of the 110 or so species of Atelopus, which are endemic to the American tropics, have met the same fate, and a pathogenic chytrid fungus (Batrachochytrium dendrobatidis) is implicated. Analysing the timing of losses in relation to changes in sea surface and air temperatures, we conclude with 'very high confidence' (> 99%, following the Intergovernmental Panel on Climate Change, IPCC) that large-scale warming is a key factor in the disappearances. We propose that temperatures at many highland localities are shifting towards the growth optimum of Batrachochytrium, thus encouraging outbreaks. With climate change promoting infectious disease and eroding biodiversity, the urgency of reducing greenhouse-gas concentrations is now undeniable.