Collectively, HEX alleviated inflammatory response via PPARα-SIRT1-NF-κB axis in vitro and HEX also rescued S. aureus-induced mastitis in a dose-dependent manner in vivo. Here, SIRT1 is linked to mastitis.