BackgroundPatients with myocardial infarction (MI) frequently experience a heightened incidence of depression, thereby increasing the risk of adverse cardiovascular events. Consequently, early detection and intervention in depressive symptoms among patients with MI are imperative. Shexiang Baoxin Pills (SBP), a Chinese patent medicine employed for the treatment of MI, exhibits diverse mechanisms targeting this condition. Nevertheless, its therapeutic efficacy on postmyocardial infarction depressive symptoms remains unclear. The aim of this study is to investigate the effectiveness and mechanism of SBP in managing depression during acute myocardial infarction (AMI).MethodsA rat model combining MI and depression was established, and the rats were randomly divided into four groups: the model (MOD) group, SBP group, Fluoxetine (FLX) group, and Sham group. After 28 days of drug intervention, cardiac function was assessed using echocardiography while behavior was evaluated through sucrose preference test (SPT), forced swimming test (FST), and open‐field test (OFT). Additionally, levels of inflammatory factors in serum and hippocampus were measured along with NLRP3 inflammasome‐related protein expression via Western blotting and immunofluorescence.ResultsSBP can enhance cardiac function in rats with AMI and depression, while significantly ameliorating depressive‐like behavior. Compared to the Sham group, levels of IL‐1β, IL‐18, TNF‐α, and other inflammatory factors were markedly elevated in the MOD group. However, expressions of these inflammatory factors were reduced to varying degrees following treatment with SBP or FLX. Analysis of NLRP3 inflammasome‐related proteins in the hippocampus revealed a significant upregulation of IL‐1β, IL‐18, NLRP3, ASC, caspase‐1, and GSDMD in the MOD group; conversely, these measures were significantly attenuated after SBP intervention.ConclusionWe have observed a significant amelioration in depression‐like behavior upon SBP administration during the treatment of AMI, suggesting that this effect may be attributed to the inhibition of NLRP3‐mediated pyroptosis. (The main findings are summarized in the graphical abstract in the supplementary file.)