In the current study, we investigated the role of AhR expressed by the CECs in the regulation of antimicrobial peptide, BD‐1, and consequent effect on microbial flora in the gut as well as colonic inflammation during colitis. Here, DEFB1 is linked to colitis.