Background: The antimicrobial peptide (AMP) S100A7, with antimicrobial activities for a broad spectrum of bacteria, have attracted more and more attention for the prevention and treatment of mastitis. However, in goat mastitis, there is little information about the expression and regulation mechanism of S100A7. In present study, the immunolocalization of S100A7 in healthy and mastitis goat udder were compared. In order to further explore the regulatory mechanism of S100A7 expression in mammary epithelial cells (MECs), goat MECs were isolated and treated by 2.5, 5, 10 and 20 μg/mL lipopolysaccharide (LPS) respectively for different time.Results: Both in healthy and mastitis goat teat, S100A7 was mainly expressed in stratified squamous epithelium of teat skin and streak canal. In healthy goat mammary gland, weakly S100A7 immunoreactivity was present in the alveolus. But in the collapsed alveolus of mastitis goat mammary gland, densely S100A7 immunoreactivity could be observed.The goat MECs were treated by 2.5, 5, 10 and 20 μg/mL LPS respectively for different time. For all of these four groups, after treatment for 3 h, increase in S100A7 mRNA expression and protein secretion were detected compared to control (p<0.05). For 10 and 20μg/mL LPS groups, after treatment for 6 h, the mRNA and secreted protein levels of S100A7 were remarkably up-regulated compared to control(p<0.01). For all of these four groups, the secretion level of S100A7 descended after 48 h treatment. Moreover, after treatment with LPS, the mRNA levels of Toll-like receptor 4(TLR4) and MyD88 were up-regulated, and the phosphorylation of p65 was up-regulated markedly compared to control. However, adding TLR4 inhibitor TAK-242 or/and NF-κB inhibitor QNZ significantly suppressed the phosphorylation of p-65,and then inhibited the expression and secretion of S100A7 induced by LPS treatment.Conclusions: S100A7 was mainly expressed in stratified squamous epithelium of teat skin and streak canal. In mastitis goat mammary gland alveolus, the expression level of S100A7 was up-regulated compared to that in healthy goat. LPS induced the expression and secretion of S100A7 in goat MECs depended on concentration and treatment duration. Moreover, LPS induced the expression and secretion of S100A7 in goat MECs via TLR4/NF-κB signaling pathway.