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 LYZ and mastitis.