In conclusion, these findings suggest that the roles of gut microbiota in infection after pectin treatment are partly mediated by the AhR pathway. Here, AHR is linked to infection.