In this study, we identified the significant protective role of ERRγ overexpression and selective ERRγ agonist DY131 in reducing myocardial injury following MI by mitigating inflammation and pyroptosis through downregulating GBP5. This evidence concerns the gene ESRRG and myocardial infarction.