The cytochrome P450 (CYP450) gene family plays a vital role in basic metabolism, hormone signaling, and enhances plant resistance to stress. Among them, the CYP82 gene family is primarily found in dicots, and they are typically activated in response to various specific environmental stresses. Nevertheless, their roles remain considerably obscure, particularly within the context of cucumber. In the present study, 12 CYP82 subfamily genes were identified in the cucumber genome. Bioinformatics analysis included gene structure, conserved motif, cis-acting promoter element, and so on. Subcellular localization predicted that all CYP82 genes were located in the endoplasmic reticulum. The results of cis element analysis showed that CYP82s may significantly affect the response to stress, hormones, and light exposure. Expression patterns of the CYP82 genes were characterized by mining available RNA-seq data followed by qRT-PCR (quantitative real-time polymerase chain reaction) analysis. Members of CYP82 genes display specific expression profiles in different tissues, and in response to PM and abiotic stresses in this study, the role of CsCYP82D102, a member of the CYP82 gene family, was investigated. The upregulation of CsCYP82D102 expression in response to powdery mildew (PM) infection and treatment with methyl jasmonate (MeJA) or salicylic acid (SA) was demonstrated. Further research found that transgenic cucumber plants overexpressing CsCYP82D102 display heightened resistance against PM. Wild-type (WT) leaves exhibited average lesion areas of approximately 29.7% at 7 dpi upon powdery mildew inoculation. In contrast, the two independent CsCYP82D102 overexpression lines (OE#1 and OE#3) displayed significantly reduced necrotic areas, with average lesion areas of approximately 13.4% and 5.7%. Additionally, this enhanced resistance is associated with elevated expression of genes related to the SA/MeJA signaling pathway in transgenic cucumber plants. This study provides a theoretical basis for further research on the biological functions of the P450 gene in cucumber plants.