Bovine mastitis caused by infectious pathogens can lead to a decline in production performance and an increase in elimination rate, resulting in huge losses to the dairy industry. This study aims to prepare a novel dairy cow teat disinfectant with polyhexamethylene biguanide (PHMB) as the main bactericidal component and to evaluate its bactericidal activity in vitro and its disinfection effect in dairy cow teats. PHMB disinfectant with a concentration of 3 g/L was prepared with PVA-1788, propylene glycol and glycerol as excipients. When the dilution ratio is 1:4800 and the action time is 5 min, the PHMB teat disinfectant can reduce the four types of bacteria (S. agalactiae ATCC 12386, S. dysgalactiae ATCC 35666, S. aureus ATCC 6538, and E. coli ATCC 8099) by 99.99%. PHMB teat disinfectant applied on the skin of rabbits with four bacteria types achieved an average log10 reduction greater than 4. After 30 s of PHMB teat disinfectant dipping, the bacteria of cow teats were counted prior to disinfection. The mean log10 reduction in bacteria on the skin surface of 12 cows ranged from 0.99 to 3.52 after applying the PHMB teat disinfectant for 10 min. After 12 h, the PHMB teat disinfectant achieved an average log10 reduction in bacteria from 0.27 to 0.68 (compared with that prior to disinfection). These results suggested that PHMB teat disinfection has the potential to prevent and treat mastitis-causing bacteria in dairy herds.