One of the most fundamental and challenging questions in the cancer field is how immunity in patients with cancer is transformed from tumor immunosurveillance to tumorpromoting inflammation. Here, we identify the transcription factor STAT3 as the culprit responsible for this pathogenic event in lung cancer development. We found that antitumor type 1 CD4+ T-helper (Th1) cells and CD8+ T cells were directly counter balanced in lung cancer development with tumor-promoting myeloid-derived suppressor cells (MDSCs) and suppressive macrophages, and that activation of STAT3 in MDSCs and macrophages promoted tumorigenesis through pulmonary recruitment and increased resistance of suppressive cells to CD8+ T cells, enhancement of cytotoxicity toward CD4+ and CD8+ T cells, induction of regulatory T cell (Treg), inhibition of dendritic cells (DC), and polarization of macrophages toward the M2 phenotype. The deletion of myeloid STAT3 boosted antitumor immunity and suppressed lung tumorigenesis. These findings increase our understanding of immune programming in lung tumorigenesis and provide a mechanistic basis for developing STAT3-based immunotherapy against this and other solid tumors.