Sepsis-induced myocardial dysfunction commonly occurs in individuals with sepsis and is a severe complication with high morbidity and mortality rates. This study aimed to investigate the effects and potential mechanisms of the natural steroidal sapogenin ruscogenin (RUS) against lipopolysaccharide (LPS)-induced myocardial injury in septic mice. We found that RUS effectively alleviated myocardial pathological damage, normalized cardiac function, and increased survival in septic mice. RNA sequencing demonstrated that RUS administration significantly inhibited the activation of the NOD-like receptor signaling pathway in the myocardial tissues of septic mice. Subsequent experiments further confirmed that RUS suppressed myocardial inflammation and pyroptosis during sepsis. In addition, cultured HL-1 cardiomyocytes were challenged with LPS, and we observed that RUS could protect these cells against LPS-induced cytotoxicity by suppressing inflammation and pyroptosis. Notably, both the in vivo and in vitro findings indicated that RUS inhibited NOD-like receptor protein-3 (NLRP3) upregulation in cardiomyocytes stimulated with LPS. As expected, knockdown of NLRP3 blocked the LPS-induced activation of inflammation and pyroptosis in HL-1 cells. Furthermore, the cardioprotective effects of RUS on HL-1 cells under LPS stimulation were abolished by the novel NLRP3 agonist BMS-986299. Taken together, our results suggest that RUS can alleviate myocardial injury during sepsis, at least in part by suppressing NLRP3-mediated inflammation and pyroptosis, highlighting the potential of this molecule as a promising candidate for sepsis-induced myocardial dysfunction therapy.