Avian pathogenic E. coli (APEC) causes localized and systemic infections and are a threat to human health. microRNAs (miRNAs) play critical roles in inflammation and immune regulation following pathogen invasion. However, the related regulatory mechanism remains unclear. This study aimed to elucidate the involvement of chicken microRNA-20a-5p (gga-miR-20a-5p) in host defense against APEC in chickens and the underlying mechanisms. We evaluated the expression levels of gga-miR-20a-5p in chicken tissues and cells and observed a significant decrease in expression following APEC infection. Dual luciferase reporter assays showed that gga-miR-20a-5p directly targeted transforming growth factor-beta receptor 2 (TGFBR2), specifically by binding to the 3′-untranslated region (3′UTR) of TGFBR2. Overexpression of gga-miR-20a-5p markedly reduced both the mRNA and protein levels of TGFBR2, whereas inhibition of gga-miR-20a-5p significantly increased expression. Mechanistic investigations revealed that overexpression of gga-miR-20a-5p also attenuated the expression levels of the pro-inflammatory cytokines IL8, TNFα, IL6, and IL1β, whereas inhibition of gga-miR-20a-5p had the opposite effects. Collectively, our findings suggest that gga-miR-20a-5p regulates the immune response during APEC infection by targeting TGFBR2, thereby suppressing inflammatory cytokine production. This study provides valuable insights into the role of gga-miR-20a-5p in the host defense against APEC.