The study of insect-resistant transgenic tobacco provides a good foundation for the further application of the cry1Ah gene in other important crops. To improve transgene expression levels and insect resistance, the coding sequence of the novel Bacillus thuringiensis insecticidal gene cry1Ah (truncated cry1Ah) was modified according to the codon bias of the plant by increasing its GC content from the original 37 % to 48, 55, and 63 % (designated m1-cry1Ah, m2-cry1Ah, and m3-cry1Ah, respectively). In addition, the m3-cry1Ah gene was linked with a transit peptide sequence for chloroplast-targeted expression (designated ctp-m3-cry1Ah). Four plant expression vectors were constructed harboring m1-cry1Ah, m2-cry1Ah, m3-cry1Ah, or ctp-m3-cry1Ah. A total of 23 transgenic tobacco lines were produced with the four constructs by Agrobacterium tumefaciens-mediated transformation. PCR, Southern hybridization, quantitative RT-PCR and ELISA indicated that the cry1Ah gene was not only integrated into the tobacco genome, but was also successfully expressed at the mRNA and protein levels. The Cry1Ah protein level in ctp-m3-cry1Ah plants reached 4.42 μg/g fresh weight, which was a 2- to 10-fold increase over the levels observed in m1-cry1Ah, m2-cry1Ah, and m3-cry1Ah plants and resulted in the highest resistance to Helicoverpa armigera based on bioassays. Our results demonstrated that combining the codon optimization of cry1Ah gene with the targeting of Cry1Ah protein to the chloroplasts conferred a high level of protection against insects. The results of our experiments in tobacco, an important model system, provide a good foundation for enhancing the insecticidal efficacy of staple crops.