ABSTRACT: The prevalence of tuberculosis continues to be high, and nontuberculous mycobacterial (NTM) infection has also emerged worldwide. Moreover, differential and accurate identification of mycobacteria to the species or subspecies level is an unmet clinical need. Here, we developed a one-step multiplex PCR assay using whole-genome analysis and bioinformatics to identify novel molecular targets. The aims of this assay were to (i) discriminate between the Mycobacterium tuberculosis complex (MTBC) and NTM using rv0577 or RD750, (ii) differentiate M. tuberculosis (M. tuberculosis) from MTBC using RD9, (iii) selectively identify the widespread M. tuberculosis Beijing genotype by targeting mtbk_20680, and (iv) simultaneously detect five clinically important NTM (M. avium, M. intracellulare, M. abscessus, M. massiliense, and M. kansasii) by targeting IS1311, DT1, mass_3210, and mkan_rs12360 An initial evaluation of the multiplex PCR assay using reference strains demonstrated 100% specificity for the targeted Mycobacterium species. Analytical sensitivity ranged from 1 to 10 pg for extracted DNA and was 103 and 104 CFU for pure cultures and nonhomogenized artificial sputum cultures, respectively, of the targeted species. The accuracy of the multiplex PCR assay was further evaluated using 55 reference strains and 94 mycobacterial clinical isolates. Spoligotyping, multilocus sequence analysis, and a commercial real-time PCR assay were employed as standard assays to evaluate the multiplex PCR assay with clinical M. tuberculosis and NTM isolates. The PCR assay displayed 100% identification agreement with the standard assays. Our multiplex PCR assay is a simple, convenient, and reliable technique for differential identification of MTBC, M. tuberculosis, M. tuberculosis Beijing genotype, and major NTM species.