Black rot caused by Xanthomonas campestris pv. campestris (Xcc) is the most damaging disease in Brassica crops around the world. In this study, we developed a molecular marker specific to Xcc race 5. To do this, the available whole genome sequences of Xcc races/strains and Xc subspecies were aligned and identified a highly variable genomic region (XccR5-89.2). Subsequently, a primer set covering the 'XccR5-89.2' region was designed and tested against the genomic DNA of Xcc races/strains, Xc subspecies and other plant-infecting bacterial strains (Pseudomonas syringae pv. maculicola and Erwinia carotovora subsp. carotovora). The results showed that the 'XccR5-89.2' primer pair amplified a 2,172-bp fragment specific to Xcc race 5. Moreover, they also amplified a 1,515-bp fragment for Xcc race 1 and an over 3,000-bp fragment for Xcc race 3. However, they did not amplify any fragments from the remaining Xcc races/strains, subspecies or other bacterial strains. The 'XccR5-89.2' primer pair was further PCR amplified from race-unknown Xcc strains and ICMP8 was identified as race 5 among nine race-unknown Xcc strains. Further cloning and sequencing of the bands amplified from race 5 and ICMP8 with 'XccR5-89.2' primers revealed both carrying identical sequences. The results showed that the 'XccR5-89.2' marker can effectively and proficiently detect, and identify Xcc race 5 from Xcc races/strains, subspecies and other plant-infecting bacteria. To our knowledge, this is the first report for an Xcc race 5-specific molecular marker.