With the continuous emergence and spread of drugresistant and multi-drug-resistant Staphylococcus aureus, traditional antibiotic treatment has gradually lost its effect. There is an urgent need to develop and study new and effective bio-green inhibitors to control S. aureus. In this study, the S. aureus phage DZ25 was isolated from milk and the lysin LysDZ25 with excellent tolerance to serum and NaCl solution was identified. Subsequently, to improve the lytic activity and thermal stability of LysDZ25, RoseTTAFold was used to construct threedimensional (3D) structures, molecular dynamics (MD) simulation was used for conformational acquisition, and the MDL strategy previously developed in our lab was used to rationally design variants. After two rounds of rational design, the optimal variant with improved thermal stability, S333V/N245R/D299L, was obtained, and its half-life time was 4.0-fold that of wild-type LysDZ25. At 37, 40, 45, and 50 °C, the lytic activity of the optimal triple-point variant S333V/N245R/ D299L was increased by 17.3-, 26.7-, 20.2-, and 50.1-fold compared with that of the wild-type LysDZ25, respectively. Finally, cell count was used to evaluate the lytic activity, and the results showed that the optimal variant S333V/N245R/D299L could drop about 3.5 log 10 values compared with the control and about 2.6 log 10 values compared with the wild-type LysDZ25.