Rice bacterial leaf blight and rice bacterial leaf streak have induced tremendous damage to production of rice worldwide. To discover an effective novel antibacterial agent, a series of novel trans-resveratrol (RSV) derivatives containing 1,3,4-oxadiazole and amide moieties were designed and synthesized for the first time. Most of them showed excellent antibacterial activities against Xanthomonas oryzae pv oryzicola and Xanthomonas oryzae pv oryzae. Especially, compound J12 had the best inhibitory with the half-maximal effective concentration values of 4.2 and 5.0 mg/L, respectively, which were better than that of RSV (63.7 and 75.4 mg/L), bismerthiazol (79.5 and 89.6 mg/L), and thiodiazole copper (105.4 and 112.8 mg/L). Furthermore, compound J12 had an excellent control effect against rice bacterial leaf streak and rice bacterial leaf blight, with protective activities of 46.2 and 42.1% and curative activities of 44.5 and 41.7%, respectively. Preliminary mechanisms indicated that compound J12 could not only remarkably decrease biofilm formation, extracellular polysaccharide production, and the synthesis of extracellular enzymes but also destroy bacterial cell surface morphology, thereby reducing the pathogenicity of bacteria. In addition, compound J12 could increase the activity of defense-related enzymes and affect the expression of multiple pathogenic-related genes including plant-pathogen interaction, the MAPK signaling pathway, and phenylpropanoid biosynthesis, and this could improve the defense of rice against rice bacterial leaf streak infection. The present work indicates that the RSV derivatives can be used as promising candidates for the development of antibacterial agents.