Oxidative stress is a risk factor for mammary health, resulting in decreased milk yield and milk quality. Application of exogenous bioactive compounds has been a research focus of antioxidation of animals in the mammary gland. Quercetin is a flavonoid extracted from vegetables, fruits and tea and has been shown to have a variety of biological activities, but the effect of quercetin on redox imbalance in mammary epithelial cells is unclear. In this study, cells of HC11, a mouse mammary epithelial cell line, were treated with quercetin, and the effects and molecular mechanisms of quercetin protection on hydrogen peroxide-induced oxidative stress were studied. Results showed that 20 μΜ quercetin attenuated hydrogen peroxide-induced lactate dehydrogenase release and reactive oxygen species (ROS) accumulation and alleviated the reduction of cell viability and antioxidant capacity. Quercetin significantly restored the activation of mitogen-activated protein kinase (MAPK) and nuclear factor E2-related factor 2 (Nrf2) pathways induced by hydrogen peroxide. Importantly, the inhibitors of p38 MAPK and extracellular regulated protein pathways affected the activation of Nrf2 pathway. All inhibitors of MAPK and Nrf2 pathways reduced the protective effects of quercetin on cell proliferation, the activity of catalase and the expression of glutamate-cysteine ligase modifier subunit. Meanwhile, the effects of quercetin on the production of ROS and expression of glutamate/cystine reverse transporter light chain were mainly dependent on Nrf2 pathway. In summary, the protective effect of quercetin in mammary epithelial cells was mediated via MAPK and Nrf2 pathways.