Captopril inhibited myocardial pyroptosis through TLR4/NF‐κB p65 pathway thus alleviated cardiac dysfunction and remodelling in MI rats. This evidence concerns the gene NFKB1 and myocardial infarction.