A therapeutic effect of Nurr1 and Foxa2 in inflammatory neurologic disorders by M1-to-M2 polarization of glial cells is provided. Specifically, a method of converting glial cells from an M1 phenotype to an M2 phenotype, wherein Nurr1 and Foxa2 are introduced into the glial cells to be overexpressed in the glial cells and a method of preventing or treating an inflammatory neurologic disorder, which includes glial cells into which Nurr1 and Foxa2 are introduced, or a viral vector loaded with Nurr1 and Foxa2, are provided.