In this study, IL-22 was selected as a candidate drug for the treatment of bovine mastitis, and its anti-inflammatory repair effect was used to treat mammary tissue injured by mastitis. Here, IL22 is linked to mastitis.