The results showed that E. coli could induce inflammation of SEECs in vitro, while astragalin and CGA could alleviate the inflammatory response induced by E. coli via inhibiting the activation of the TLR4/NF-κB signaling pathway, which provides a theoretical and experimental foundation for preventing sheep endometritis clinically. The gene discussed is NFKB1; the disease is endometritis.