Genomic studies on pathogenic and environmental mycobacteria are of growing interest for understanding of their evolution, distribution, adaptation, and host-pathogen interaction. Since most mycobacteria are slow growers, material from in vitro cultures is usually scarce. The robust mycobacterial cell wall hinders both experimental cell lysis and efficient DNA extraction. Here, we compare elements of several DNA preparation protocols and describe a method that is economical and practical and reliably yields large amounts--usually 10-fold increased compared to earlier protocols--of highly pure genomic DNA for sophisticated downstream applications. This method was optimized for cultures of a variety of pathogenic and environmental mycobacterial species and proven to be suitable for direct mycobacterial DNA extraction from infected insect specimens.