Interleukin-25 (IL-25) is the only anti-inflammatory cytokine of the IL-17 family, and it has been shown to be efficacious in inhibiting neuroinflammation. Known for its effects on cells of the adaptive immune system, it has been more recently described to be effective also on cells of the innate immune system, namely macrophages. We used a lentiviral-mediated gene therapy approach to deliver IL-25 to the central nervous system (CNS) in two mouse models of neuroinflammation, entorhinal cortex lesion and experimental autoimmune encephalomyelitis. In both, we found that IL-25 gene therapy was able to modulate CNS myeloid cells, either infiltrating macrophages or resident microglia, towards an anti-inflammatory, tissue-protective phenotype, as testified by the increase in markers such as Arginase-1 (Arg1), Mannose receptor 1 (CD206) and Chitinase 3-like 3 (Ym1). As a consequence, neuroinflammation was partly inhibited and the CNS protected from immune-mediated damage. To our knowledge, this is the first example of M2 shift (alternative activation) induced in vivo on CNS-resident myeloid cells by gene therapy, and may constitute a promising strategy to investigate the potential role of protective microglia in neurological disorders.