Collectively, these results indicated that DCA alleviated S. aureus-induced mastitis through the TGR5-cAMP-PKA-NF-κB/NLRP3 axis. The gene discussed is NLRP3; the disease is mastitis.