Staphylococcus aureus is an opportunistic pathogen that can cause fatal bacterial infections. MurD catalyzes the formation of peptide bond between UDP-N-acetylehyl-l-alanine and d-glutamic acid, which plays an important role in the synthesis of peptidoglycan and the formation of cell wall by S. aureus. Because S. aureus is resistant to most existing antibiotics, it is necessary to develop new inhibitors. In this study, Schrodinger 11.5 Prime homology modeling was selected to prepare the protein model of MurD enzyme, and its structure was optimized. We used a virtual screening program and similarity screening to screen 47163 compounds from three marine natural product libraries to explore new inhibitors of S. aureus. ADME provides analysis of the physicochemical properties of the best performing compounds during the screening process. To determine the stability of the docking effect, a 100 ns molecular dynamics was performed to verify how tightly the compound was bound to the protein. By docking analysis and molecular dynamics analysis, both 46604 and 46608 have strong interaction with the docking pocket, have good pharmacological properties, and maintain stable conformation with the target protein, so they have a chance to become drugs for S. aureus. Through virtual screening, similarity screening, ADME study and molecular dynamics simulation, 46604 and 46608 were selected as potential drug candidates for S. aureus.