We found that myocarditis was significantly associated with patients receiving anti-program cell death protein 1 (PD-1) or anti-program death ligand 1 (PD-L1), odds ratio (OR) = 23.86 (95% confidence interval [CI] 11.76–48.42, (adjusted p-value) q <  0.001), and combination immunotherapy, OR = 7.29 (95% CI 1.03–51.89, q = 0.047). Here, PDCD1 is linked to myocarditis.