ABSTRACT: We used several public databases to perform a comprehensive pan-cancer analysis to determine the potential role of HTR7 in diagnosing tumors, predicting prognosis, and predicting cancer immunotherapy response. The results showed that HTR7 is highly expressed in 12 tumors and lowly expressed in 13 tumors compared with normal tissues. HTR7 has a specific diagnostic value in 18 cancers, especially in COAD, HNSC, KIRC, PCPG, and READ. High expression of HTR7 was associated with a favorable prognosis in ACC, COAD, KIRC, KIRP, PRAD, READ, SKCM, and THCA, while in CESC, ESCA, GBM, HNSC, PAAD, and THYM, high expression of HTR7 was associated with an unfavorable prognosis. In most tumors, HTR7 expression was positively correlated with the infiltration of monocytes, macrophages, and myeloid dendriti