Diabetic patients with CRC or lung cancer who were treated with DPP4 inhibitors exhibited a statistically significant survival advantage (hazard ratio [HR] of 0.89; CI: 0.82‐0.97, P = 0.007) that remained significant after controlling for all other confounders. This evidence concerns the gene DPP4 and lung carcinoma.