Therefore, these results suggested that the function of XIST in the process of E. coli or S. aureus‐induced mastitis was to prevent the production of inflammatory cytokines, particularly, through inhibiting the activation of NF‐κB. This evidence concerns the gene XIST and mastitis.