Genetic predisposition to multiple sclerosis (MS) only explains a fraction of the disease risk; lifestyle and environmental factors are key contributors to the risk of MS. Importantly, these nongenetic factors can influence pathogenetic pathways, and some of them can be modified. Besides established MS-associated risk factors - high latitude, female sex, smoking, low vitamin D levels caused by insufficient sun exposure and/or dietary intake, and Epstein-Barr virus (EBV) infection - strong evidence now supports obesity during adolescence as a factor increasing MS risk. Organic solvents and shift work have also been reported to confer increased risk of the disease, whereas factors such as use of nicotine or alcohol, cytomegalovirus infection and a high coffee consumption are associated with a reduced risk. Certain factors - smoking, EBV infection and obesity - interact with HLA risk genes, pointing at a pathogenetic pathway involving adaptive immunity. All of the described risk factors for MS can influence adaptive and/or innate immunity, which is thought to be the main pathway modulated by MS risk alleles. Unlike genetic risk factors, many environmental and lifestyle factors can be modified, with potential for prevention, particularly for people at the greatest risk, such as relatives of individuals with MS. Here, we review recent data on environmental and lifestyle factors, with a focus on gene-environment interactions.