The cytochrome P450 (CYP450) gene family plays a vital role in basic metabolism and enhances plant resistance to stress and pests. However, little information is available on the genome-wide characterization and evolutionary relationship of the CYP450 gene family in Cucumis sativus L. In the present study, a genome-wide bioinformatics analysis was performed, including gene structure, conserved motif, cis-acting promoter element, evolutionary analysis, collinearity, subcellular localization, and expression profile. The gene expression profile of CYP450 was verified using transcriptome sequencing and quantitative reverse transcription polymerase chain reaction. A total of 165 P450 genes were identified in the cucumber genome. These genes were classified into eight subfamilies and unevenly distributed on seven chromosomes. Subcellular localization predicted that most of P450 genes were located in chloroplasts and a few were located on the plasma membrane. CYP450 genes were differentially expressed in different tissues and in response to salicylic acid (SA) treatment. The sizes of all cucumber P450 proteins ranged from 317 to 1,056 aa, the theoretical isoelectric points ranged from 5.05 to 10.31, and the molecular weights ranged from 36,095 to 121,403 KD. This study provides a theoretical basis for further research on the biological functions of the P450 gene in cucumber plants.