The aryl hydrocarbon receptor (AHR) recognizes xenobiotics as well as natural compounds such as tryptophan metabolites, dietary components and microbiota-derived factors 1–4, and it is important for maintenance of homeostasis at mucosal surfaces. AHR activation induces cytochrome P4501 (CYP1) enzymes, which oxygenate AHR ligands, leading to their metabolic clearance and detoxification5. Thus, CYP1 enzymes have an important feedback role that curtails the duration of AHR signalling 6, but it remains unclear whether they also regulate AHR ligand availability in vivo. Here we show that dysregulated expression of Cyp1a1 in mice depletes the reservoir of natural AHR ligands, generating a quasi AHR-deficient state. Constitutive expression of Cyp1a1 throughout the body or restricted specifically to intestinal epithelial cells resulted in loss of AHR-dependent type 3 innate lymphoid cells and T helper 17 cells and increased susceptibility to enteric infection. The deleterious effects of excessive AHR ligand degradation on intestinal immune functions could be counter-balanced by increasing the intake of AHR ligands in the diet. Thus, our data indicate that intestinal epithelial cells serve as gatekeepers for the supply of AHR ligands to the host and emphasize the importance of feedback control in modulating AHR pathway activation.