Our results suggest that C. butyricum ameliorates E. coli-induced endometritis by inhibiting the TLR4/NF-κB signaling pathway and the HDAC level. Here, TLR4 is linked to endometritis.