In vivo, SFN effectively alleviated histopathological lesions, suppressed the expression of inflammatory factors, enhanced immunohistochemistry staining of Nrf2, and amplified of LC3 puncta LPS-induced mastitis in mice. The gene discussed is MAP1LC3A; the disease is mastitis.