Mastitis is a common and important clinical disease in ruminants. This may be associated with inflammatory fibrosis if not treated promptly. Inflammation-derived fibrosis is usually accompanied by epithelial–mesenchymal transition (EMT) in epithelial cells. However, the precise molecular mechanism underlying mastitis-induced fibrosis remains unclear. Nuclear factor kappa-B (NF-κB) and Snail are key regulators of EMT. In this study, primary goat mammary epithelial cells (GMECs) were treated with 10 μg/mL lipopolysaccharide (LPS) for 14 d to mimic the in vivo mastitis environment. After LPS treatment, the GMECs underwent mesenchymal morphological transformation and expressed mesenchymal cell markers. Snail expression was induced by LPS and was inhibited by suppression of the TLR4/NF-κB signaling pathway. Snail knockdown alleviated LPS-induced EMT and altered the expression of inflammatory cytokines. Finally, we found that the expression of key molecules of the TLR4/NF-κB/Snail signaling pathway was increased in mastitis tissues. These results suggest that Snail plays a vital role in LPS-induced EMT in GMECs and that the mechanism is dependent on the activation of the TLR4/NF-κB signaling pathway.