In conclusion, dioscin improves pyroptosis in LPS-induced mice mastitis by activating AMPK/Nrf2 and inhibiting the NF-κB signaling pathway. The gene discussed is NFKB1; the disease is mastitis.