PurposeThe emergence of immune checkpoint inhibitors (ICIs) has revolutionized cancer treatment, but these drugs can also cause severe immune-related adverse effects (irAEs), including myocarditis. Researchers have become interested in exploring ways to mitigate this side effect, and one promising avenue is the use of baricitinib, a Janus kinase inhibitor known to have anti-inflammatory properties. This study aimed to examine the potential mechanism by which baricitinib in ICIs-related myocarditis. MethodsTo establish an ICIs-related myocarditis model, BALB/c mice were administered murine cardiac troponin I (cTnI) peptide and anti-mouse programmed death 1 (PD-1) antibodies. Subsequently, baricitinib was administered to the mice via intragastric administration. Echocardiography, HE staining, and Masson staining were performed to evaluate myocardial functions, inflammation, and fibrosis. Immunofluorescence was used to detect macrophages in the cardiac tissue of the mice.In vitro experiments utilized raw264.7 cells to induce macrophage polarization using anti-PD-1 antibodies. Different concentrations of baricitinib were applied to assess cell viability, and the release of pro-inflammatory cytokines was measured. The activation of the JAK1/STAT3 signaling pathway was evaluated through western blot analysis. ResultsBaricitinib demonstrated its ability to improve cardiac function and reduce cardiac inflammation, as well as fibrosis induced by ICIs. Mechanistically, baricitinib treatment promoted the polarization of macrophages towards the M2 phenotype. In vitro and in vivo experiments showed that anti-PD-1 promoted the release of inflammatory factors. However, treatment with baricitinib significantly inhibited the phosphorylation of JAK1 and STAT3. Additionally, the use of RO8191 reversed the effects of baricitinib, further confirming our findings. ConclusionBaricitinib demonstrated its potential as a protective agent against ICIs-related myocarditis by modulating macrophage polarization. These findings provide a solid theoretical foundation for the development of future treatments for ICIs-related myocarditis.