Up to 40% of patients with inflammatory bowel disease present with psychosocial disturbances. We previously identified a gut vascular barrier that controls the dissemination of bacteria from the intestine to the liver. Here, we describe a vascular barrier in the brain choroid plexus (PVB) that is modulated in response to intestinal inflammation through bacteria-derived lipopolysaccharide. The inflammatory response induces PVB closure after gut vascular barrier opening by the up-regulation of the wingless-type, catenin-beta 1 (Wnt/β-catenin) signaling pathway, rendering it inaccessible to large molecules. In a model of genetically driven closure of choroid plexus endothelial cells, we observed a deficit in short-term memory and anxiety-like behavior, suggesting that PVB closure may correlate with mental deficits. Inflammatory bowel disease–related mental symptoms may thus be the consequence of a deregulated gut–brain vascular axis.