Our findings suggest that ERβ is a protective gene that confers resilience against anxiety in mice with colitis. Here, ESR2 is linked to Anxiety.