Apoptosis plays a critical role in tumorigenesis. TP63 inhibits the pro-apoptosis function of TP53, and CD40 increases expression of anti-apoptotic proteins. Two single nucleotide polymorphisms (SNPs), rs6790167 (g243059A>G) in intron 9 of TP63 and rs1535045 (g6194C>T) in intron 1 of CD40 respectively, may affect the susceptibility of lung cancer. To evaluate the association of these SNPs with lung cancer, we performed a case-control study with 258 patients, including 149 adenocarcinoma and 47 small cell lung cancer, and 270 controls. Genotyping was conducted using allele-specific polymerase chain reaction and pyrosequencing. We found that rs6790167 and rs1535045 are associated with the risk of lung adenocarcinoma (P = 0.048) and small cell lung cancer (P = 0.019), respectively. Non-smoking males carrying the GG genotype of rs6790167 had higher risk for lung adenocarcinoma than individuals carrying the AA genotype (OR = 7.58, 95% CI: 2.43-23.65). Compared to the TT genotype of rs1535045, non-smoking women with the CC genotype had higher risk for lung adenocarcinoma (OR = 4.20, 95% CI: 1.34-13.12). After stratified analysis based on clinical characteristics, the frequency of the CC genotype of rs1535045 was higher in patients at I-II stages (P = 0.013) or patients whose tumor markers were negative (P = 0.003). Individuals carrying both the GG genotype of rs6790167 and the CC genotype of rs1535045 were associated with significantly higher risk for lung adenocarcinoma. Thus, the polymorphisms in the TP63 and CD40 genes are associated with lung cancer in a Chinese Han population.