Bacterial virulence factors are involved in various biological processes and mediate persistent bacterial infections. Focusing on virulence factors of phytopathogenic bacteria is an attractive strategy and crucial direction in pesticide discovery to prevent invasive and persistent bacterial infection. Hence, discovery and development of novel agrochemicals with high activity, low-risk, and potent anti-virulence is urgently needed to control plant bacterial diseases. A series of novel β-hydroxy pyridinium cation decorated pterostilbene derivatives were prepared and their antibacterial activities against Xanthomonas oryzae pv. oryzae (Xoo) were systematacially assessed. Among these pterostilbene derivatives, compound 4S exhibited the best antibacterial activity against Xoo in vitro, with an half maximal effective concentration (EC50) value of 0.28 μg mL-1. A series of biochemical assays including scanning electron microscopy, crystal violet staining, and analysis of biofilm formation, swimming motility, and related virulence factor gene expression levels demonstrated that compound 4S could function as a new anti-virulence factor inhibitor by interfering with the bacterial infection process. Furthermore, the pot experiments provided convinced evidence that compound 4S had the high control efficacy (curative activity: 71.4%, protective activity: 72.6%), and could be used to effectively manage rice bacterial leaf blight in vivo. Compounds 4S is an attractive virulence factor inhibitor with potential for application in treating plant bacterial diseases by suppressing production of several virulence factors. © 2024 Society of Chemical Industry.