This investigation analyzed the risk factors for bacterial lung infection in patients with advanced lung adenocarcinoma and found that age, smoking, stage, bronchiectasis, diabetes, CD3+ T cell percentage, and CD4+ T cell count were closely related to bacterial lung infection. This evidence concerns the gene CD4 and diabetes mellitus.