EZH2 was selected as a key shared gene through the PPI network, which was positively linked to several immune-related molecular pathways in both sepsis and NSCLC. This evidence concerns the gene EZH2 and non-small cell lung carcinoma.