Multiple sclerosis (MS), neuromyelitis optica (NMO) and myelin oligodendrocyte glycoprotein antibody disease (MOGAD) are inflammatory diseases of the central nervous system (CNS) with a multifactorial aetiology. Environmental factors are important for their development and microorganisms could play a determining role. They can directly damage the CNS, but their interaction with the immune system is even more important. The possible mechanisms involved include molecular mimicry, epitope spreading, bystander activation and the dual cell receptor theory. The role of Epstein–Barr virus (EBV) in MS has been definitely established, since being seropositive is a necessary condition for the onset of MS. EBV interacts with genetic and environmental factors, such as low levels of vitamin D and human endogenous retrovirus (HERV), another microorganism implicated in the disease. Many cases of onset or exacerbation of neuromyelitis optica spectrum disorder (NMOSD) have been described after infection with Mycobacterium tuberculosis, EBV and human immunodeficiency virus; however, no definite association with a virus has been found. A possible role has been suggested for Helicobacter pylori, in particular in individuals with aquaporin 4 antibodies. The onset of MOGAD could occur after an infection, mainly in the monophasic course of the disease. A role for the HERV in MOGAD has been hypothesized. In this review, we examined the current understanding of the involvement of infectious factors in MS, NMO and MOGAD. Our objective was to elucidate the roles of each microorganism in initiating the diseases and influencing their clinical progression. We aimed to discuss both the infectious factors that have a well-established role and those that have yielded conflicting results across various studies.