Additionally, our findings suggested that the anti‐inflammatory action of LYZ can be achieved by regulating HMGB1 expression, thereby mitigating the progression of mastitis. This evidence concerns the gene HMGB1 and mastitis.