Background: Cognitive impairment is frequent in multiple sclerosis (MS) and lacks effective treatment. Cognitive rehabilitation is widely applied in neurorehabilitation settings. Functional magnetic resonance imaging (fMRI) may help in investigating changes in brain activity and provide a tool to assess the efficacy of rehabilitation.