Clinical samples analysis revealed that the diversity and abundance of microbiota were altered in patients with endometritis having positive CD138 levels, while mechanistic investigations revealed C.t alleviated S. aureus-induced endometritis by inactivating TLR4/NF-κB pathway. Here, TLR4 is linked to endometritis.