Impaired AhR activation by disturbing the intestinal microbiota initiated mastitis, and processed Escherichia coli (E. coli)-induced mastitis in mice. Here, AHR is linked to mastitis.