The rapid technique of pyrosequencing was used to examine 123 samples (in the form of DNA extracts and inactivated sputum) of Mycobacterium spp. Of 99 Mycobacterium tuberculosis samples investigated for single-nucleotide polymorphisms (SNPs), 68% of isoniazid-resistant isolates analysed had an AGC --> ACC mutation in katG at codon 315, resulting in the Ser --> Thr substitution associated previously with isoniazid resistance. Of the rifampicin-resistant isolates, 92% showed SNPs in rpoB at codons 516, 531 or 526. Inactivated sputum samples and DNA extracts could both be analysed by pyrosequencing, and the method was able to differentiate rapidly between the closely related species of the M. tuberculosis complex (M. tuberculosis, Mycobacterium bovis, Mycobacterium africanum, Mycobacterium canetti and Mycobacterium microti), except between M. tuberculosis, M. canetti and one of two M. africanum strains. This low-cost, high-throughput technique could be used as a rapid screen for drug resistance and as a replacement for some of the time-consuming tests used currently for species identification.