The pathogenesis of non-small-cell lung cancer (NSCLC) is complex, since many risk factors have been identified. Recent research indicates that polymorphisms in the metabolic pathway of vitamin D may be involved in both risk and survival of the disease. The objective of this study is to assess the effect of 13 genetic polymorphisms involved in the vitamin D metabolic pathway on the risk of suffering from NSCLC. We conducted an observational case-control study, which included 204 patients with NSCLC and 408 controls, of Caucasian origin, from southern Spain. The CYP27B1 (rs4646536, rs3782130, rs703842, rs10877012), CYP2R1 (rs10741657), GC (rs7041), CYP24A1, and VDR (BsmI, Cdx-2, FokI, ApaI, TaqI) gene polymorphisms were analyzed by real-time polymerase chain reaction. The logistic regression model, adjusted for smoking and family history of cancer, revealed that in the genotypic model, carriers of the VDR BsmI rs1544410-AA genotype were associated with a lower risk of developing NSCLC compared to the GG genotype (p = 0.0377; OR = 0.51; CI95% = 0.27–0.95; AA vs. GG). This association was maintained in the recessive model (p = 0.0140). Haplotype analysis revealed that the AACATGG and GACATGG haplotypes for the rs1544410, rs7975232, rs731236, rs4646536, rs703842, rs3782130, and rs10877012 polymorphisms were associated with a lower risk of NSCLC (p = 0.015 and p = 0.044 respectively). The remaining polymorphisms showed no effect on susceptibility to NSCLC. The BsmI rs1544410 polymorphism was significantly associated with lower risk of NSCLC and could be of considerable value as a predictive biomarker of the disease.