The antimicrobial peptide S100A7 plays an important role to resist infection of bacteria in mastitis. Here, S100A7 is linked to mastitis.