Treatment with DCA alleviates S. aureus-induced mastitis in mice and the underlying mechanism is involved in the activation of TGR5, which inhibits the activation of NF-κB and NLRP3 signaling by cAMP and PKA. This evidence concerns the gene GPBAR1 and mastitis.