We investigated whether AhR activation by microbiota-metabolic ligands could influence mastitis development in mice. Here, AHR is linked to mastitis.