Implant-associated infections (IAIs) caused by S. aureus can result in serious challenges after orthopedic surgery. Due to biofilm formation and antibiotic resistance, this refractory infection is highly prevalent, and finding drugs to attenuate bacterial virulence is becoming a rational alternative strategy. In S. aureus, the SaeRS two-component system (TCS) plays a key role in the production of over 20 virulence factors and the pathogenesis of the bacterium. Here, by conducting a structure-based virtual screening against SaeR, we identified that fenoprofen, a USA Food and Drug Administration (FDA)-approved nonsteroid antiinflammatory drug (NSAID), had excellent inhibitory potency against the response regulator SaeR protein. We showed that fenoprofen attenuated the virulence of S. aureus without drug resistance. In addition, it was helpful in relieving osteolysis and restoring the walking ability of mice in vitro and in implant-associated infection models. More importantly, fenoprofen treatment suppressed biofilm formation and changed the biofilm structure, which caused S. aureus to form loose and porous biofilms that were more vulnerable to infiltration and elimination by leukocytes. Our results reveal that fenoprofen is a potent antivirulence agent with potential value in clinical applications and that SaeR is a drug target against S. aureus implant-associated infections.