(Significance) Berberine and carvacrol exhibit significant therapeutic effects against bacterial-induced endometritis by reducing TLR2 and TLR4 expression, inhibiting NF-κB and MAPK pathway activation, and decreasing pro-inflammatory cytokine production, thus demonstrating robust anti-inflammatory activity. Here, TLR2 is linked to endometritis.