✧Inhibited the production of TLR4, NF-κB, IL-1ß, IL-6, and TNF-α) and enhanced the production of anti-inflammatory cytokines (IL-10) to ameliorate inflammatory changes.✧In addition, icariin suppressed the levels of MDA and ROS and improved Nrf2, NQO1, HO-1, SOD1, CAT, and GPX expressions to relieve the oxidative stress induced by LPS.✧LPS-induced endometritis was ameliorated via Nrf2/NF-κB signaling pathways. Here, HMOX1 is linked to endometritis.