• Selenium supplementation was effective in diminishing the quantities of NF-κB and nitric oxide, while also promoting the activation of PPAR-γ activity.• These actions collectively worked to safeguard mice from developing mastitis caused by S. aureus infection. This evidence concerns the gene NFKB1 and mastitis.