Learning ability and immunity to parasites are linked at the physiological level in several insect species. The aim of this work was to investigate the relationship between learning and immunity at an evolutionary level. We tested whether selection for improved learning ability in Drosophila melanogaster led to changes in parasitoid resistance as a correlated response. Similarly, we assayed whether selection for better parasitoid resistance led to a change in learning ability. There was no significant difference between selected and control lines in either case; the estimated confidence intervals for the differences indicate that a trade-off relationship is unlikely.