In the present study, a total of 12 SNPs were identified in IL-17F and IL-17A genes in Holstein and Inner-Mongolia Sanhe cattle, of which 2 SNPs were arbitrarily chosen for genotyping and further screening to evaluate their potential association with mastitis. This evidence concerns the gene IL17F and mastitis.