Host density can increase infection rates and reduce host fitness as increasing population density enhances the risk of becoming infected either through increased encounter rate or because host condition may decline. Conceivably, potential hosts could take high host density as a cue to up-regulate their defence systems. However, as host density usually covaries with food availability, it is difficult to examine the importance of host density in isolation. Thus, we performed two fullfactorial experiments that varied juvenile densities of Daphnia magna (a freshwater crustacean) and food availability independently. We also included a simulated high-density treatment, where juvenile experimental animals were kept in filtered media that previously maintained Daphnia at high-density. Upon reaching adulthood, we exposed the Daphnia to their sterilizing bacterial parasite, Pasteuria ramosa, and examined how the juvenile treatments influenced the likelihood and severity of infection (Experiment I) and host immune investment (Experiment II). Neither juvenile density nor food treatments affected the likelihood of infection; however, well-fed hosts that were well-fed as juveniles produced more offspring prior to sterilization than their less well-fed counterparts. By contrast, parasite growth was independent of host juvenile resources or host density. Parasite-exposed hosts had a greater number of circulating haemocytes than controls (i.e., there was a cellular immune response), but the magnitude of immune response was not mediated by food availability or host density. These results suggest that density dependent effects on disease arise primarily through correlated changes in food availability: low food could limit parasitism and potentially curtail epidemics by reducing both the host's and parasite's reproduction as both depend on the same food.