The heterogeneity of the immune microenvironment leads to different responses in immune checkpoint blockade therapy. We aimed to propose a robust molecular classification system to investigate the relevance of the immune microenvironment subtype and prognosis of prostate cancer patients, as well as the therapeutic response to immune checkpoint blockade therapy.