Rapamycin preserves cardiac function in autoimmune myocarditis by reprogramming Cxcl9+ macrophages via the mTORC1–C/EBPβ–OSM axis. This evidence concerns the gene CXCL9 and autoimmune myocarditis.