Interleukin 7 receptor (IL-7R) has been associated with the pathogenesis of multiple sclerosis (MS), though the mechanisms are not clear. Because myelin expression is highly conserved between zebrafish and mammals, zebrafish have become an ideal model for studying demyelination. We used a transgenic (Tg; mbp: nfsB-egfp) zebrafish line in which oligodendrocytes expressed green fluorescent protein (GFP) from the larval stage to adulthood. Exposing adult transgenic zebrafish to metronidazole induced demyelination that resembled the morphological changes associated with the early stages of MS. The metronidazole-induced demyelination was confirmed by magnetic resonance imaging (MRI) for the first time. Microarray analysis revealed down-regulation of IL-7R during demyelination. Targeted knockdown of IL-7R demonstrated that IL-7R is essential for myelination in embryonic and larval zebrafish. Moreover, IL-7R down-regulation induced signaling via the JAK/STAT pathway leading to apoptosis in oligodendrocytes. These findings contribute to our understanding of the role of IL-7R in demyelination, and provide a rationale for the development of IL-7R-based therapies for MS and other demyelinating diseases.