In this study, artemisinin inhibited the activation of TLR4/NF-κB pathways in E. coli–infected MAC-T cells, and this may be a potential mechanism for artemisinin treatment of mastitis. Here, NFKB1 is linked to mastitis.