Patients with inflammatory bowel disease, including ulcerative colitis (UC) and Crohn's disease, have a high incidence of psychiatric disorders, including depression and anxiety. However, the underlying pathogenic mechanism remains unknown. Dextran sulfate sodium (DSS)-treated mice, a model of UC, exhibit depressive-like behavior and reduced adenosine monophosphate-activated protein kinase (AMPK) activity, which regulates various physiological functions in the brain and gut. However, comprehensive studies on UC pathophysiology with co-occurring depression focused on brain-gut AMPK activity are lacking. Therefore, we aimed to investigate whether resveratrol (RES), an AMPK activator, prevented DSS-induced UC-like symptoms and depressive-like behavior. DSS treatment induced UC-like pathology and depressive-like behavior, as assessed via the tail suspension test. Moreover, western blotting and immunohistochemical studies revealed that DSS increased p-p70S6 kinase (Thr389), p62, tumor necrosis factor-α, interleukin (IL)-1β, IL-18, NLR family pyrin domain containing 3 (NLRP3), cleaved caspase-1, cleaved Gasdermin-D (GSDMD), and cleaved caspase-3 expression levels in the rectum and hippocampus, and increased CD40, iNOS, and Kelch-like ECH-associated protein 1 expression levels, and the number of Iba1-positive cells in the hippocampus, and decreased p-AMPK and LC3II/I expression levels, and the number of NF-E2-related factor 2 (Nrf2)-positive cells, and reduced neurogenesis in the hippocampus. These changes were reversed by the RES administration. RES also enhanced PGC1α and SOD1 expression in the hippocampus of DSS-treated male mice. Moreover, NLRP3 staining was observed in the neurons and microglia, and cleaved GSDMD staining in neurons in the hippocampus of DSS-treated mice. Notably, RES prevented UC-like pathology and depressive-like behavior and enhancement of autophagy, decreased rectal and hippocampal inflammatory cytokines and inflammasome, and induced the Nrf2-PGC1α-SOD1 pathway in the hippocampus, resulting in neurogenesis in the hippocampal dentate gyrus. Our findings suggest that brain-gut AMPK activation may be an important therapeutic strategy in patients with UC and depression.