Collectively, HEX is a potential prophylactic agent for SARA- and S. aureus-induced mastitis in mice. This evidence concerns the gene HHEX and mastitis.