Bovine mastitis is one of the most common clinical diseases in dairy cows, causing huge economic losses to the dairy industry. Quercetin is an important flavonoid existing in many food resources, which has attracted widespread attention as a potential anti-inflammatory and antioxidant. However, the molecular mechanism of quercetin on inflammatory responses and oxidative stress in bovine mammary epithelial cells (BMECs) induced by lipopolysaccharide (LPS) remains unknown. The objective of this study was to investigate the effects of quercetin on inflammation responses, oxidative stress, and barrier function of BMEC induced by LPS. Our results showed that BMEC viability was not affected by treatment with 50 and 100 μg/ml of quercetin and 1 μg/ml of LPS compared with control group. The results of oxidative stress indicators and related genes of barrier function indicated that 100 μg/ml of quercetin effectively protected the BMECs from damage of oxidative and barrier induced by 1 μg/ml of LPS. Moreover, the messenger RNA (mRNA) expressions of pro-inflammatory cytokines TNF-α, IL-1β, IL-6, and chemokines CXCL2, CXCL5, CCL5, and CXCL8 were markedly decreased in the LPS-treated bovine retinal endothelial cells (BRECs) with 100 μg/ml of quercetin relatively to LPS alone. More importantly, the mRNA expressions of toll-like receptor 4 (TLR4), CD14, myeloid differential protein-2 (MD2), and myeloid differentiation primary response protein (MyD88) genes involved in TLR4 signal pathway were significantly attenuated by the addition of quercetin in LPS-treated BMEC, suggesting that quercetin can inhibit the TLR4 signal pathway. In addition, immunocytofluorescence showed that quercetin significantly inhibited the nuclear translocation of NF-κB p65 in BMEC induced by LPS. Therefore, the protective effects of quercetin on inflammatory responses in LPS-induced BMEC may be due to its ability to suppress the TLR4-mediated NF-κB signaling pathway. These findings suggest that quercetin can be used as an anti-inflammatory reagent to treat mastitis induced by exogenous or endogenous LPS release.