Our results revealed the critical roles of ERBB2 gene demethylation and tumor immune cell infiltration, indicating that the survival of cancer patients could be modulated by improving immune cell infiltration and ERBB2 demethylation in various cancers. This evidence concerns the gene ERBB2 and neoplasm.