Antimicrobial resistance has been an increasingly serious threat to global public health. Anti-virulence strategies are being developed to manage antibiotic resistance because they apply a lower selective pressure for antimicrobial-resistant pathogens than that created using traditional bactericides. We aimed to discover novel small molecules that can reduce the production of virulence factors in Pseudomonas aeruginosa and determine the mechanism of action underlying these effects. A clinical compound library was screened, and ostarine was identified as a potential anti-virulence agent. The effects of ostarine were studied via antimicrobial susceptibility testing, bacterial growth assays, pyocyanin quantitation assays, transcriptomic analysis, quorum sensing signal molecule quantification, and real-time PCR assays. Ostarine treatment significantly decreased the synthesis of pyocyanin without any bactericidal action. Besides, ostarine treatment did not affect the relative growth rate and cell morphology of bacteria. Treatment with ostarine interfered with quorum sensing by decreasing the transcription of genes associated with quorum sensing systems and the production of signalling molecules. The inhibition of ostarine on pyocyanin production and gene expression can be alleviated when signalling molecules were supplemented externally. Overall, ostarine may act as a novel anti-virulence agent that can attenuate P. aeruginosa pyocyanin by interfering with quorum sensing systems.