Mating and consequent reproduction significantly reduce the ability of female Drosophila melanogaster to defend against systemic bacterial infection. The goal of the present study was to identify genes likely to inform the mechanism of this post-mating immunosuppression. We used microarrays to contrast genome-wide transcript levels in virgin vs. mated females before and after infection. Because the immunosuppressive effect of mating is contingent on the presence of a germline in females, we repeated the entire experiment by using female mutants that do not form a germline. We found that multiple genes involved in egg production show reduced expression in response to infection, and that this reduction is stronger in virgins than it is in mated females. In germline-less females, expression of egg-production genes was predictably low and not differentially affected by infection. We also identified several immune responsive genes that are differentially induced after infection in virgins vs. mated females. Immune genes affected by mating status and egg production genes altered by infection are candidates to inform the mechanism of the trade-off between mating and immune defense.