S100A7 plays an essential role in goat mammary glands for a broad spectrum of resisting the invasion and infection of pathogenic microorganisms, and also is considered an alternative strategy for preventing and treating mastitis to broad-spectrum antibacterial strategies, with almost no resistance. The gene discussed is S100A7; the disease is infection.