ObjectivesTo identify key genes involved in vascular invasion in hepatocellular carcinoma (HCC), to describe their regulatory mechanisms, and to explore the immune microenvironment of HCC.MethodologyIn this study, the genome, transcriptome, and immune microenvironment of HCC were assessed by using multi-platform data from The Cancer Genome Atlas (n = 373) and GEO data (GSE149614). The key regulatory networks, transcription factors and core genes related to vascular invasion and prognosis were explored based on the CE mechanism. Survival analysis and gene set enrichment were used to explore pathways related to vascular invasion. Combined with single-cell transcriptome data, the distribution of core gene expression in various cells was observed. Cellular communication analysis was used to identify key cells associated with vascular invasion. Pseudo-temporal locus analysis was used to explore the regulation of core genes in key cell phenotypes. The influence of core genes on current immune checkpoint therapy was evaluated and correlations with tumor stem cell scores were explored.ResultsWe obtained a network containing 1,249 pairs of CE regulatory relationships, including 579 differential proteins, 28 non-coding RNAs, and 37 miRNAs. Three key transcription factors, ILF2, YBX1, and HMGA1, were identified, all regulated by HCG18 lncRNA. ScRNAseq showed that HCG18 co-localized with macrophages and stem cells. CIBERSORTx assessed 22 types of immune cells in HCC and found that HCG18 was positively correlated with M0 macrophages, while being negatively correlated with M1 and M2 macrophages, monocytes, and dendritic cells. Cluster analysis based on patient prognosis suggested that regulating phenotypic transformation of macrophages could be an effective intervention for treating HCC. At the same time, higher expression of HCG18, HMGA1, ILF2, and YBX1 was associated with a higher stem cell score and less tumor differentiation. Pan cancer analysis indicated that high expression of HCG18 implies high sensitivity to immune checkpoint therapy.ConclusionHCG18 participates in vascular invasion of HCC by regulating macrophages and tumor stem cells through three key transcription factors, YBX1, ILF2, and HMGA1.