Our study established and validated a risk model based on eight pyroptosis-related genes, provided some evidence for predicting the BCR of prostate cancer, and further proved that pyroptosis is related to tumor immune cell infiltration in prostate cancer. Here, BCR is linked to prostate cancer.