NFE2L2 and mastitis: These results indicate that the natural compound SFN has a preventive effect on LPS-induced inflammation through by regulating the Nrf2-mediated autophagy pathway in primary goat mammary epithelial cells and a mouse model of mastitis, which may improve prevention strategies for mastitis in dairy goats.