In conclusion, HMGCS2 is abnormally expressed in pan-cancer, may play an important role in anti-tumor immunity, and is expected to be a potential tumor prognostic marker, especially in clear cell renal cell carcinoma. Here, HMGCS2 is linked to neoplasm.