Although parasites and microbial pathogens are both detrimental to insects, little information is currently available on the mechanism involved in how parasitized hosts balance their immune responses to defend against microbial infections. We addressed this in the present study by comparing the immune response between unparasitized and parasitized pupae of the chrysomelid beetle, Octodonta nipae (Maulik), to Escherichia coli invasion. In an in vivo survival assay, a markedly reduced number of E. coli colony-forming units per microliter was detected in parasitized pupae at 12 and 24 h post-parasitism, together with decreased phagocytosis and enhanced bactericidal activity at 12 h post-parasitism. The effects that parasitism had on the mRNA expression level of selected antimicrobial peptides (AMPs) of O. nipae pupae showed that nearly all transcripts of AMPs examined were highly upregulated during the early and late parasitism stages except defensin 2B, whose mRNA expression level was downregulated at 24 h post-parasitism. Further elucidation on the main maternal fluids responsible for alteration of the primary immune response against E. coli showed that ovarian fluid increased phagocytosis at 48 h post-injection. These results indicated that the enhanced degradation of E. coli in parasitized pupae resulted mainly from the elevated bactericidal activity without observing the increased transcripts of target AMPs. This study contributes to a better understanding of the mechanisms involved in the immune responses of a parasitized host to bacterial infections.