Our findings reveal the role of the microbiota in reshaping tumour-related immune responses involving NK cells and CD8+T cells and shed light on the clinical immunotherapy of lung cancer. This evidence concerns the gene CD8A and lung cancer.