Sulforaphane (SFN) is one of the hydrolysates of glucosinolates (GSLs), primarily derived from Brassica vegetables like broccoli. In clinical therapy, SFN has been proven to display antimicrobial, anticancer, antioxidant, and anti-inflammatory properties. However, the antimicrobial effects and mechanism of SFN against plant pathogens need to be further elucidated, which limits its application in agriculture. In this study, the genetic factors involved in SFN biosynthesis in 33 B. oleracea varieties were explored. The finding showed that besides the genetic background of different B. oleracea varieties, myrosinase and ESP genes play important roles in affecting SFN content. Subsequently, the molecular identification cards of these 33 B. oleracea varieties were constructed to rapidly assess their SFN biosynthetic ability. Furthermore, an optimized protocol for SFN extraction using low-cost broccoli curds was established, yielding SFN-enriched extracts (SFN-ee) containing up to 628.44 μg/g DW of SFN. The antimicrobial activity assay confirmed that SFN-ee obtained here remarkably inhibit the proliferation of nine tested microorganisms including four plant pathogens by destroying their membrane integrity. Additionally, the data demonstrated that exogenous application of SFN-ee could also induce ROS accumulation in broccoli leaves. These results indicated that SFN-ee should play a dual role in defense against plant pathogens by directly killing pathogenic cells and activating the ROS signaling pathway. These findings provide new evidence for the antimicrobial effect and mechanism of SFN against plant pathogens, and suggest that SFN-ee can be used as a natural plant antimicrobial agent for crop protection and food preservation.