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. Here, TLR4 is linked to endometritis.