ERβ has the potential to inhibit colitis development and anxiety-like behaviors via remodeling of the gut microbiota, which suggests that ERβ is a promising therapeutic target for the treatment of IBD and related anxiety-like behaviors. Here, ESR2 is linked to colitis.