Altogether, our results indicate that metformin exerts anti-inflammation and oxidative stress through regulation of AMPK/Nrf2/NF-κB signaling pathway, which highlights the role of AMPK as a potential therapeutic strategy for treatment of bovine mastitis. Here, NFKB1 is linked to Bovine mastitis.