This study provided functional insight to the mechanisms of reduced milk production during mastitis and provided possible ways to combat the reduction, such as enhancing Nrf2-antioxidant responsive element (ARE) pathway and reducing the inhibition of milk protein expression. Here, NFE2L2 is linked to mastitis.