The diversity and variability of P. sojae races make effective control of the pathogen challenging. Here, we introduced an elicitor of plant defense response, the harpinXooc-encoding hrf2 gene from the rice bacterial pathogen Xanthomonas oryzae pv. oryzicola into soybean and evaluated resistance to P. sojae infection. Molecular analysis confirmed the integration and expression of hrf2 in the transgenic soybean. After inoculation with P. sojae, non-transformed control (NC) plants exhibited typical PRR symptoms, including necrotic and wilting leaves, and plant death, whereas most of the transgenic plants showed slightly chlorotic leaves and developed normally. Through T3 to T5 generations, the transgenic events displayed milder disease symptoms and had higher survival rates compared to NC plants, indicating enhanced and stable resistance to P. sojae infection, whereas without P. sojae inoculation, no significant differences in agronomic traits were observed between the transgenic and non-transformed plants. Moreover, after inoculation with P. sojae, significant upregulation of a set of plant defense-related genes, including salicylic acid- and jasmonic acid-dependent and hypersensitive response-related genes was observed in the transgenic plants. Our results indicate that hrf2 expression in transgenic soybean significantly enhanced resistance to P. sojaeby eliciting multiple defense responses mediated by different signaling pathways. The potential functional role of the hrf2 gene in plant defense against P. sojae and other pathogens makes it a promising tool for broadening disease resistance in soybean.