Finally, we demonstrate that we can improve BBB function and reduce neuroinflammation and cognitive deficits in aged mice by restoring core 1 mucin-type O-glycans to the brain endothelium using adeno-associated viruses. Here, MUC5AC is linked to Cognitive impairment.