Lung cancer is a major global health problem, as it is the leading cause of cancer-related deaths worldwide. Major advances in the identification of key mutational alterations have led to the development of molecularly targeted therapies, whose efficacy has been limited by emergence of resistance mechanisms. US Food and Drug Administration (FDA)-approved therapies targeting angiogenesis and more recently immune checkpoints have reinvigorated enthusiasm in elucidating the prognostic and pathophysiological roles of the tumour microenvironment in lung cancer. In this Review, we highlight recent advances and emerging concepts for how the tumour-reprogrammed lung microenvironment promotes both primary lung tumours and lung metastasis from extrapulmonary neoplasms by contributing to inflammation, angiogenesis, immune modulation and response to therapies. We also discuss the potential of understanding tumour microenvironmental processes to identify biomarkers of clinical utility and to develop novel targeted therapies against lung cancer.