In summary, our study identifies unrecognized functions of astrocytic YAP in the prevention of demyelination and neuroinflammation and reveals a novel pathway of YAP-HMGCS1 for cholesterol synthesis in astrocytes during EAE, which may help to develop new therapeutics for MS. This evidence concerns the gene HMGCS1 and myeloid sarcoma.