New tools are needed to study the intracellular pathogen Mycobacterium tuberculosis (Mtb), the causative agent of tuberculosis (TB), to facilitate new drug discovery and vaccine development. We have developed methodology to genetically incorporate unnatural amino acids into proteins in Mycobacterium smegmatis, BCG and Mtb, grown both extracellularly in culture and inside host cells. Orthogonal mutant tRNATyr/tyrosyl-tRNA synthetase pairs derived from Methanococcus jannaschii and evolved in Escherichia coli incorporate a variety of unnatural amino acids (including photocrosslinking, chemically reactive, heavy atom containing, and immunogenic amino acids) into proteins in response to the amber nonsense codon. By taking advantage of the fidelity and suppression efficiency of the MjtRNA/pIpaRS pair in mycobacteria, we are also able to use p-iodophenylalanine to induce the expression of proteins in mycobacteria both extracellularly in culture and inside of mammalian host cells. This provides a new approach to regulate the expression of reporter genes or mycobacteria endogenous genes of interest. The establishment of the unnatural amino acid expression system in Mtb, an intracellular pathogen, should facilitate studies of TB biology and vaccine development.