Overall, these results suggest the role of intestinal microbiota in the pathogenesis of mastitis through regulating AhR activation by metabolizing tryptophan into key active molecules. This evidence concerns the gene AHR and mastitis.