Our findings shed light on the functions of IL-21 in regulating the intestinal immunity of bony fish during bacterial infection. This evidence concerns the gene IL21 and bacterial infectious disease.