After constructing the prognostic prediction model, SLPI, VSIG2, CENPF, SLC7A1, SMC4, and ITPR2 were finally regarded as the key genes in the prognosis of patients with prostate cancer. This evidence concerns the gene SLPI and prostate cancer.