These findings provide new insights into the potential application of the yak IL-22 gene in the treatment of bovine mastitis in the future. Here, IL22 is linked to Bovine mastitis.