Epidemiological studies have shown that air pollution and particulate matter (PM) are closely related to the occurrence of cancer. However, the potential prognostic and immunological biomarkers for air pollution related cancers are lacking. In this study, we proved PM2.5 exposure was correlated with lung cancer through transcriptome analysis. Importantly, we identified STC2 as a key gene regulated by PM2.5, whose expression in epithelial cells was significantly increased after PM2.5 treatment and validated by using RT-qPCR and immunofluorescence. Kaplan-Meier OS curves suggested that high STC2 expression positively correlated with a poor prognosis in lung cancer. Furthermore, we discovered that STC2 was associated with multiple cancers and pathways in cancer. Next, Pan-Cancer Expression Landscape of STC2 showed that STC2 exhibited inconsistent expression across 26 types of human cancer, lower in KIRP in cancer versus adjacent normal tissues, and significantly higher in another cancers. Cox regression results suggested that STC2 expression was positively or negatively associated with prognosis in different cancers. Moreover, STC2 expression was associated with clinical phenotypes including age, gender, stage and grade. Mutation features of STC2 were also analyzed, in which the highest alteration frequency of STC2 was presented in KIRC with amplification. Meanwhile, the effects of copy number variation (CNV) on STC2 expression were investigated across various tumor types, suggesting that STC2 expression was significantly correlated with CNV in tumors. Additionally, STC2 was closely related to tumor heterogeneity, tumor stemness and tumor immune microenvironment like immune cell infiltration. In the meantime, we analyzed methylation modifications and immunological correlation of STC2. The results demonstrated that STC2 expression positively correlated with most RNA methylation genes and immunomodulators across tumors. Taken together, the findings revealed that PM2.5-induced STC2 might be a potential prognostic and immunological biomarker for cancers related to air pollution.