Our results, for the first time, revealed a potential role of IgG+CD27+ B cells, CD4+CD8+ T cells and WC1+ γδ T cells in the defense of B. contaminans-induced mastitis in cows. Here, CD27 is linked to mastitis.