Prostate cancer (PCa) is one of the most common malignancies in men globally. The aim of the present study was to identify the key genes and pathways involved in the occurrence of PCa. Gene expression profile (GSE55945) was downloaded from Gene Expression Omnibus, and the differentially expressed genes (DEGs) were identified. Subsequently, Gene ontology analysis, KEGG pathway analysis and protein-protein interaction (PPI) analysis of DEGs were performed. Finally, the identified key genes were confirmed by immunohistochemistry. The GO analysis results showed that the DEGs were mainly participated in cell cycle, cell division, cell development and cell junction. The KEGG pathway analysis showed that the DEGs were mainly enriched in proteoglycans in cancer, endocytosis, focal adhesion and hippo signaling pathway. The PPI analysis results showed that RPS21, FOXO1, BIRC5, POLR2H, RPL22L1 and NPM1 were the key genes involved in the occurrence of PCa, and the Module analysis indicated that the occurrence of PCa was associated with cell cycle, oocyte meiosis and ribosome biogenesis. IHC result showed that the expression of RPS21, BIRC5, POLR2H, RPL22L1 and NPM1 were significantly upregulated in PCa, while the expression of FOXO1 was significantly downregulated in PCa, matching with the bioinformatics analysis. Taken together, several key genes and pathways were identified involved in PCa, which might provide the potential biomarker for prognosis, diagnosis and drug targets.