Powdery mildew (PM), caused by the fungal pathogen Erysiphe necator, is one of the most destructive diseases of grapevine (Vitis vinifera and other Vitis spp.). Resistance to PM is an important goal for cultivar improvement, and understanding the underlying molecular mechanisms conditioning resistance is critical. Here, we report that transgenic expression of the WRKY transcription factor gene VqWRKY31 from the PM-resistant species Vitis quinquangularis conferred resistance to PM in V. vinifera through promoting salicylic acid signaling and specific metabolite synthesis. VqWRKY31 belongs to the WRKY IIb subfamily, and expression of the VqWRKY31 gene was induced in response to E. necator inoculation. Transgenic V. vinifera plants expressing VqWRKY31 were substantially less susceptible to E. necator infection, and this was associated with increased levels of salicylic acid and reactive oxygen species. Correlation analysis of transcriptomic and metabolomic data revealed that VqWRKY31 promoted expression of genes in metabolic pathways and the accumulation of many disease resistance-related metabolites, including stilbenes, flavonoids, and proanthocyanidins. In addition, results indicated that VqWRKY31 can directly bind to the promoters of two structural genes in stilbene synthesis, STS9 and STS48, and activate their expression. Based on our results, we propose a model where VqWRKY31 enhances grapevine PM resistance through activation of salicylic acid defense signaling and promotion of specific disease resistance-related metabolite synthesis. These findings can be directly exploited for molecular breeding strategies to produce PM-resistant grapevine germplasm.