These results indicate that immune clearance of Staphylococcus aureus in mastitis is facilitated by the enrichment of Th17, Th1 and Th2 cells in the mammary gland mediated by pro-inflammatory cytokine production, which is tightly regulated by Treg cells and the anti-inflammatory cytokine IL-10. This evidence concerns the gene IL10 and mastitis.