Our findings highlight that gut microbiota act as a triggering event in IBD and related anxiety-like behaviors in ERβ-deficient mice. Here, ESR2 is linked to Anxiety.