Multiple sclerosis (MS) is the prototypic complex disease, in which both genes and the environment contribute to its pathogenesis. To date, > 200 independent loci across the genome have been associated with MS risk. However, these only explain a fraction of the total phenotypic variance, suggesting the possible presence of additional genetic factors, and, most likely, also environmental factors. New DNA sequencing technologies have enabled the sequencing of all kinds of microorganisms, including those living in and around humans (i.e., microbiomes). The study of bacterial populations inhabiting the gut is of particular interest in autoimmune diseases owing to their key role in shaping immune responses. In this review, we address the potential crosstalk between B cells and the gut microbiota, a relevant scenario in light of recently approved anti-B-cell therapies for MS. In addition, we review recent efforts to characterize the gut microbiome in patients with MS and discuss potential challenges and future opportunities. Finally, we describe the international MS microbiome study, a multicenter effort to study a large population of patients with MS and their healthy household partners to define the core MS microbiome, how it is shaped by disease-modifying therapies, and to explore potential therapeutic interventions