The extent to which the biodiversity and community composition of ecosystems affect their functions is an issue that grows ever more compelling as human impacts on ecosystems increase. We present evidence that supports a novel function of vertebrate biodiversity, the buffering of human risk of exposure to Lyme-disease-bearing ticks. We tested the Dilution Effect model, which predicts that high species diversity in the community of tick hosts reduces vector infection prevalence by diluting the effects of the most competent disease reservoir, the ubiquitous white-footed mouse (Peromyscus leucopus). As habitats are degraded by fragmentation or other anthropogenic forces, some members of the host community disappear. Thus, species-poor communities tend to have mice, but few other hosts, whereas species-rich communities have mice, plus many other potential hosts. We demonstrate that the most common nonmouse hosts are relatively poor reservoirs for the Lyme spirochete and should reduce the prevalence of the disease by feeding, but rarely infecting, ticks. By accounting for nearly every host species' contribution to the number of larval ticks fed and infected, we show that as new host species are added to a depauperate community, the nymphal infection prevalence, a key risk factor, declines. We identify important "dilution hosts" (e.g., squirrels), characterized by high tick burdens, low reservoir competence, and high population density, as well as "rescue hosts" (e.g., shrews), which are capable of maintaining high disease risk when mouse density is low. Our study suggests that the preservation of vertebrate biodiversity and community composition can reduce the incidence of Lyme disease.