The strength and duration of the NF-κB signaling response must be tightly modulated to avoid an inadequate or excessive immune response. Relish, a core NF-κB transcription factor of the Drosophila Imd pathway, can control the expression of antimicrobial peptides, including Dpt and AttA, to defend against Gram-negative bacterial infections, but whether Relish may regulate miRNA expression to participate in the immune response remains unclear. In this study, taking advantage of Drosophila S2 cells and different overexpression/knockout/knockdown flies, we first found that Relish could directly activate the expression of miR-308 to negatively regulate the immune response and promote the survival of Drosophila during Enterobacter cloacae infection. Second, our results demonstrated that Relish-mediated expression of miR-308 could suppress target gene Tab2 to attenuate the Drosophila Imd pathway signal during the middle and late stages of the immune response. Third, we detected the dynamic expression patterns of Dpt, AttA, Relish, miR-308, and Tab2 in wild-type flies after E. coli infection, which further revealed that the feedback regulatory loop of Relish-miR-308-Tab2 plays a crucial role in the immune response and homeostasis maintenance of the Drosophila Imd pathway. Overall, our present study not only illustrates an important mechanism by which this Relish-miR-308-Tab2 regulatory axis can negatively control the Drosophila immune response and participate in homeostasis maintenance but also provides new insights into the dynamic regulation of the NF-κB/miRNA expression network of animal innate immunity.