Therefore, our findings demonstrated that HK2 and its hub genes are significantly correlated with prognosis and immune infiltration in glioma and may be potential targets for the treatment of patients with glioma. This evidence concerns the gene HK2 and central nervous system cancer.