Objective: This study investigated the association of circulating levels of 25-hydroxyvitamin D (25[OH]D) with the risk of metabolic syndrome (MetS) and its components in adults. Methods: This nationwide cohort involved 23,810 Chinese adults attending annual health evaluations. Serum 25(OH)D levels, MetS status, and covariates were determined at each examination. Among them, 8146, 3310, and 1971 completed two, three, and more than three evaluations, respectively. A hybrid mixed-effects and Cox regression model was employed to determine the cross-sectional and longitudinal relationships. Results: The odds ratios (ORs) and 95% confidence intervals (CIs) of MetS were significantly lower in individuals within quartile 4 (vs. 1) of serum 25(OH)D for both between-individual (0.43 [0.35, 0.52]) and within-individual comparisons (0.60 [0.50, 0.73]), respectively (all p-trends < 0.001). Among the MetS components, the corresponding ORs (95% CI) in between- and within-individual comparisons were 0.40 (0.29, 0.54) and 0.26 (0.19, 0.36) for abdominal obesity, 0.49 (0.41, 0.58) and 0.78 (0.66, 0.93) for high triglycerides, 0.70 (0.59, 0.82) and 0.75 (0.64, 0.87) for hypertriglyceridemia, 0.48 (0.39, 0.59) and 0.87 (0.71, 1.07) for low HDL cholesterol, and 0.92 (0.76, 1.12) and 0.49 (0.41, 0.59) for hypertension, respectively. Decreased hazard ratios (95% CIs) in quartile 4 (vs. 1) of 25(OH)D were found for MetS (0.80 [0.65, 1.00]), high triglycerides (0.76 [0.62, 0.92]), abdominal obesity (0.77 [0.63, 0.96]), and low HDL cholesterol (0.64 [0.50, 0.81]). Conclusions: Decreased concentrations of serum 25(OH)D correlate significantly to a heightened MetS risk and specific components. Our findings underscore the potential preventive function of circulating vitamin D concerning metabolic disorders.