B cells are essential components of the adaptive immune system and have important roles in the pathogenesis of several central nervous system (CNS) diseases. Besides producing antibodies, B cells perform other functions, including antigen presentation to T cells, production of proinflammatory cytokines and secretion of anti-inflammatory cytokines that limit immune responses. B cells can contribute to CNS disease either through their actions in the periphery (meaning that they have an 'outside-in' effect on CNS immunopathology) or following their compartmentalization within the CNS. The success of B cell-depleting therapy in patients with multiple sclerosis and CNS diseases with an autoantibody component, such as neuromyelitis optica spectrum disorder and autoimmune encephalitides, has underscored the role of B cells in both cellular and humoral-mediated CNS conditions. Emerging evidence suggests B cells also contribute to the pathogenesis of neurodegenerative diseases, including Alzheimer disease and Parkinson disease. Advancing our understanding of the role of B cells in neuroinflammatory and neurodegenerative diseases could lead to novel therapeutic approaches.