In the mammary gland, the blood–milk barrier prevents an uncontrolled intermixture of blood and milk constituents and hence maintains the osmotic gradient to draw water into the mammary secretion. During mastitis, the permeability of the blood–milk barrier is increased, which is reflected by the transfer of blood constituents into milk and vice versa. In this study, we aimed to investigate changes in the barrier function of mammary epithelial cells in vitro as induced by cell wall components of different pathogens. Primary bovine mammary epithelial cells from 3 different cows were grown separately on Transwell (Corning Inc., Corning, NY) inserts. The formation of tight junctions between adjacent epithelial cells was shown by transmission electron microscopy and by immunofluorescence staining of the tight junction protein zona occludens-1. The integrity of the epithelial barrier was assayed by means of transepithelial electrical resistance, as well as by diffusion of the fluorophore Lucifer yellow across the cell layer. The release of lactate dehydrogenase (LDH) was used as an indicator for cytotoxic effects. In response to a 24-h challenge with bacterial endotoxin, barrier integrity was reduced after 3 or 7h, respectively, in response to 0.5mg/mL lipopolysaccharide (LPS) from Escherichia coli or 20mg/mL lipoteichoic acid (LTA) from Staphylococcus aureus. No paracellular leakage was observed in response to 0.2mg/mL LPS or 2mg/mL LTA. Although LPS and LTA affected barrier permeability, most likely by opening the tight junctions, only LPS caused cell damage, reflected by increased LDH concentrations in cell culture medium. These results prove a pathogen-specific loss of blood–milk barrier integrity during mastitis, which is characterized by tight junction opening by both LPS and LTA and by additional epithelial cell destruction through LPS.