Heart failure (HF) represents a major public health burden. Inflammation has been shown to be a critical factor in the progression of HF, regardless of the aetiology. Disappointingly, the majority of clinical trials targeting aspects of inflammation in patients with HF have been largely negative. Many clinical researches demonstrate that danshen has a good efficacy on HF, and however, whether danshen exerts anti‐inflammatory effects against HF remains unclear. In our study, the employment of a water extracted and alcohol precipitated of danshen extract attenuated cardiac dysfunction and inflammation response in acute myocardial infarction‐induced HF rats. Transcriptome technique and validation results revealed that TLR4 signalling pathway was involved in the anti‐inflammation effects of danshen. In vitro, danshen reduced the release of inflammatory mediators in LPS‐stimulated RAW264.7 macrophage cells. Besides, the LPS‐stimulated macrophage conditioned media was applied to induce cardiac H9C2 cells injury, which could be attenuated by danshen. Furtherly, knock‐down and overexpression of TLR4 were utilized to confirm that danshen ameliorated inflammatory injury via MyD88‐dependent TLR4‐TRAF6‐NF‐κB signalling pathway in cardiomyocytes. Furthermore, by utilizing co‐immunoprecipitation, danshen was proved to suppress MD2/TLR4 complex formation and MyD88 recruitment. In conclusion, our results demonstrated that danshen ameliorates inflammatory injury by controlling MD2/TLR4‐MyD88 complex formation and TLR4‐TRAF6‐NF‐κB signalling pathway in acute myocardial infarction‐induced HF.