In this study, we found IPA could increase the expression of AhR and AhR inhibitor reversed the anti-inflammatory role of IPA on S. aureus-induced inflamamtion, suggesting IPA protected mice against mastitis through activating AhR. Here, AHR is linked to mastitis.