The tumor microenvironment (TME) plays a crucial role in cancer progression and recent evidence has clarified its clinical significance in predicting outcomes and efficacy. However, there are no studies on the systematic analysis of TME characteristics in bladder cancer. In this study, we comprehensively evaluated the TME invasion pattern of bladder cancer in 1,889 patients, defined three different TME phenotypes, and found that different subtypes were associated with the clinical prognosis and pathological characteristics of bladder cancer. We further explored the signaling pathways, cancer-immunity cycle, copy number, and somatic mutation differences among the different subtypes and used the principal component analysis algorithm to calculate the immune cell (IC) score, a tool for comprehensive evaluation of TME. Univariate and multivariate Cox regression analyses showed that ICscore is a reliable and independent prognostic biomarker. In addition, the use of anti-programmed death-ligand (PD-L1) treatment cohort, receiver operating characteristic (ROC) curve, Tumor Immune Dysfunction and Exclusion (TIDE), Subnetwork Mappings in Alignment of Pathways (SubMAP), and other algorithms confirmed that ICscore is a reliable prognostic biomarker for immune checkpoint inhibitor response. Patients with higher ICscore showed a significant therapeutic advantage in immunotherapy. In conclusion, this study improves our understanding of the characteristics of TME infiltration in bladder cancer and provides guidance for more effective personalized immunotherapy strategies.