To the best of our knowledge, this is the first study to examine the associations of polymorphisms in IL-17A and IL-17 F genes with bovine mastitis and to evaluate these genes as prognostic markers for mastitis in dairy cattle. This evidence concerns the gene IL17A and mastitis.