These reveal that TLR2 plays an essential role in the immune response of mammary epithelium and can be used as a candidate gene for clinical sheep mastitis, which deserves further study. This evidence concerns the gene TLR2 and mastitis.