Thus, our finding suggested that sodium butyrate relieved LPS-induced inflammatory responses in bovine macrophage by inhibiting the canonical NF-κB, NLRP3 signaling pathway, and histone decetylation, which might be helpful to prevent cow mastitis. This evidence concerns the gene NFKB1 and mastitis.