The synthesis of secondary metabolites is a hallmark of plant defence against herbivores. These compounds may be detrimental to consumers, but can also protect herbivores against parasites. Floral nectar commonly contains secondary metabolites, but little is known about the impacts of nectar chemistry on pollinators, including bees. We hypothesized that nectar secondary metabolites could reduce bee parasite infection. We inoculated individual bumblebees with Crithidia bombi, an intestinal parasite, and tested effects of eight naturally occurring nectar chemicals on parasite population growth. Secondary metabolites strongly reduced parasite load, with significant effects of alkaloids, terpenoids and iridoid glycosides ranging from 61 to 81%. Using microcolonies, we also investigated costs and benefits of consuming anabasine, the compound with the strongest effect on parasites, in infected and uninfected bees. Anabasine increased time to egg laying, and Crithidia reduced bee survival. However, anabasine consumption did not mitigate the negative effects of Crithidia, and Crithidia infection did not alter anabasine consumption. Our novel results highlight that although secondary metabolites may not rescue survival in infected bees, they may play a vital role in mediating Crithidia transmission within and between colonies by reducing Crithidia infection intensities.