A prominent clinical symptom in multiple sclerosis (MS), a progressive disorder of the central nervous system (CNS) due to heightened neuro-inflammation, is learning and memory dysfunction. Here, we investigated the effects of a ketogenic diet (KD) on memory impairment and CNS-inflammation in a murine model of experimental autoimmune encephalomyelitis (EAE), using electrophysiological, behavioral, biochemical and in vivo imaging approaches. Behavioral spatial learning deficits were associated with motor disability in EAE mice, and were observed concurrently with brain inflammation. The KD improved motor disability in the EAE model, as well as CA1 hippocampal synaptic plasticity (long-term potentiation) and spatial learning and memory (assessed with the Morris Water Maze). Moreover, hippocampal atrophy and periventricular lesions in EAE mice were reversed in KD-treated EAE mice. Finally, we found that the increased expression of inflammatory cytokines and chemokines, as well as the production of reactive oxygen species (ROS), in our EAE model were both suppressed by the KD. Collectively, our findings indicate that brain inflammation in EAE mice is associated with impaired spatial learning and memory function, and that KD treatment can exert protective effects, likely via attenuation of the robust immune response and increased oxidative stress seen in these animals.