The intestinal microbiota helps to maintain the integrity of the blood-brain barrier in fetal and adult mice.