Our findings showed that the buffaloes with endometritis had significantly higher TLR4, IL-8, IL-17, NFKB, SLCA11A1, NCF4, Keap1, HMOX1, OXSR1, ST1P1, and SERP1 expression levels. The gene discussed is KEAP1; the disease is endometritis.