Whether and how gut microbiota-mediated AhR activation regulates the pathogenesis of pathogen-induced endometritis remains unknown. Here, AHR is linked to endometritis.