These data suggest that sodium propionate protects against LPS-induced mastitis mainly by restoring blood–milk barrier disruption and suppressing inflammation via NF-κB signaling pathway and HDAC inhibition. The gene discussed is NFKB1; the disease is mastitis.