Collectively, this study reveals that the methylation of 7 genes (TAC1, CDO1, HOXA9, ZFP42, SOX17, RASSF1A and SHOX2) has a big significance in the diagnosis of lung cancer and achieved a diagnostic model with high sensitivity and specificity. Here, ZFP42 is linked to lung cancer.