Identification of the AHR ligand, “A18”, which activates AHR and reduces TLR4 signaling in human tissue and prevents NEC in mice when administered during pregnancy. Here, AHR is linked to necrotizing enterocolitis.