Captopril inhibited myocardial pyroptosis through TLR4/NF‐κB p65 pathway thus alleviated cardiac dysfunction and remodelling in MI rats. Here, TLR4 is linked to myocardial infarction.