Disease dilution (reduced disease prevalence with increasing biodiversity) has been described for many different pathogens. Although the mechanisms causing this phenomenon remain unclear, the disassembly of communities to predictable subsets of species, which can be caused by changing climate, land use or invasive species, underlies one important hypothesis. In this case, infection prevalence could reflect the competence of the remaining hosts. To test this hypothesis, we measured local host species abundance and prevalence of four generalist aphid-vectored pathogens (barley and cereal yellow dwarf viruses) in a ubiquitous annual grass host at 10 sites spanning 2000 km along the North American West Coast. In laboratory and field trials, we measured viral infection as well as aphid fecundity and feeding preference on several host species. Virus prevalence increased as local host richness declined. Community disassembly was non-random: ubiquitous hosts dominating species-poor assemblages were among the most competent for vector production and virus transmission. This suggests that non-random biodiversity loss led to increased virus prevalence. Because diversity loss is occurring globally in response to anthropogenic changes, such work can inform medical, agricultural and veterinary disease research by providing insights into the dynamics of pathogens nested within a complex web of environmental forces.