Endometritis is one of the important causes of infertility. Puerarin (PU) can inhibit oxidative stress and reduce inflammation; however, it is unclear whether PU has a protective effect on the endometritis. In our study, we used Staphylococcus aureus to induce mouse endometritis. The PU group (100 mg/kg PU) and the S. aureus + PU group received daily intraperitoneal injection of PU (25, 50 or 100 mg/kg PU). The results showed that S. aureus significantly increased the levels of MPO, TNF‐α, IL‐1β and IL‐6 in uterine tissue, and increased the expression of p‐p65 and p‐IκBα proteins in uterine tissue to induce endometritis in mice (p < 0.05). Furthermore, it has been found that S. aureus promotes the occurrence of ferroptosis by reducing GSH and ATP content, increasing MDA and iron content and reducing GPX4 and SLC7A11 protein expression levels (p < 0.05). S. aureus significantly increase the expression of NLRP3, ASC, caspase‐1 and P2X7 proteins in uterine tissue (p < 0.05). However, PU obviously reduced the inflammatory response and reversed the changes of ferroptosis and the expression of P2X7 receptor/NLRP3 pathway associated proteins of the uterus induced by S. aureus (p < 0.05). Taken together, these findings emphasize the protective effect of PU on endometritis by regulating the P2X7 receptor/NLRP3 signalling pathway and inhibiting ferroptosis.