Collectively, these results indicated that DCA alleviated S. aureus-induced mastitis through the TGR5-cAMP-PKA-NF-κB/NLRP3 axis. Here, NFKB1 is linked to mastitis.