Staphylococcus aureus (S. aureus) is common gram-positive bacteria that prominently causes community acquired infection (CAI) and hospital acquired infection (HAI) makes it a versatile and dangerous, Antibiotic resistance and the long - term nature of new drug research and development have forced the search for new research methods of antibacterial drugs. Drug repositioning is a new research approach for antibacterial drugs. Etalocib is found through screening the compound library, and its antibacterial activity is studied and the antibacterial mechanism is explored.