Tumor microenvironment heterogeneity in bladder cancer identifies biologically distinct subtypes predicting prognosis and anti-PD-L1 responses. Here, CD274 is linked to urinary bladder cancer.