Heat stress leads to milk production losses and mammary gland inflammation, which may be associated with mammary epithelium damage. Taurine is one of the most abundant free amino acids in mammals which has anti-inflammatory properties. This study aimed to explore the effect of taurine pretreatment on heat stress-induced mammary epithelial integrity disruption and inflammatory damage. In our first experiment on dairy cows our results showed that compared with animals under autumn thermoneutral condition (THI = 62.99 ± 0.71), summer heat stress (THI = 78.01 ± 0.39) significantly reduced milk yield and disrupted mammary epithelial integrity as revealed by increased concentrations of serotonin and lactose in plasma, and increased levels of SA and Na+/K+ in milk. In our second study, 36 lactating mice were randomly divided into three groups (n = 12) for a 9d experiment using a climate chamber to establish a heat stress model. Our findings suggest taurine pretreatment could attenuate heat stress-induced mammary histopathological impairment, inflammation response, and enhance mammary epithelium integrity, which was mainly achieved by promoting the secretion of ZO-1, Occludin, and Claudin-3 through inhibiting activation of the ERK1/2-MLCK signaling pathway in the mammary gland. Overall, our findings indicated that heat stress induced mammary epithelium dysfunction in dairy cows, and emphasized the protective effect of taurine on mammary health under heat stress conditions using a mouse model, which may be achieved by alleviating the mammary epithelium integrity damage and inflammation response.