Epigenetic changes influence gene expression without altering the DNA sequence. DNA methylation, histone modification and microRNA-associated post-transcriptional gene silencing are three key epigenetic mechanisms. Multiple sclerosis (MS) is a disease of the CNS with both inflammatory and neurodegenerative features. Although studies on epigenetic changes in MS only began in the past decade, a growing body of literature suggests that epigenetic changes may be involved in the development of MS, possibly by mediating the effects of environmental risk factors, such as smoking, vitamin D deficiency and Epstein-Barr virus infection. Such studies are also beginning to deliver important insights into the pathophysiology of MS. For example, inflammation and demyelination in relapsing-remitting MS may be related to the increased differentiation of T cells toward a T-helper 17 phenotype, which is an important epigenetically regulated pathophysiological mechanism. In progressive MS, other epigenetically regulated mechanisms, such as increased histone acetylation and citrullination of myelin basic protein, might exacerbate the disease course. In this Review, we summarize current knowledge on the role of epigenetic changes in the pathophysiology of MS.