AimThis study aims to address the key question of the causal relationship between serum levels of 25-hydroxyvitamin D (vitamin D) and autism spectrum disorders (ASD). MethodsPublicly available Genome-Wide Association Study (GWAS) datasets were used to conduct the bidirectional Two-sample MR analyses using methods including inverse-variance weighted (IVW), weighted median, MR-Egger regression, simple mode, MR-PRESSO test, Steiger filtering, and weighted mode, followed by BWMR for validation. ResultsThe MR analysis indicated that there was no causal relationship between Vitamin D as the exposure and ASD as the outcome in the positive direction of the MR analysis (IVW: OR = 0.984, 95 % CI: 0.821–1.18, P = 0.866). The subsequent BWMR validation stage yielded consistent results (OR = 0.984, 95 % CI 0.829–1.20, P = 0.994). Notably, in the reverse MR analysis with ASD as the exposure and Vitamin D as the outcome, the results suggested that the occurrence of ASD could lead to decreased Vitamin D levels (IVW: OR = 0.976, 95 % CI: 0.961–0.990, P = 0.000855), with BWMR findings in the validation stage confirming the discovery phase (OR = 0.975, 95 % CI: 0.958–0.991, P = 0.00297). For the positive MR analysis, no pleiotropy was detected in the instrumental variables. Similarly, no pleiotropy or heterogeneity was detected in the instrumental variables for the reverse MR analysis. Sensitivity analysis using the leave-one-out approach for both positive and reverse instrumental variables suggested that the MR analysis results were robust. ConclusionThrough the discovery and validation analysis process, we can confidently assert that there is no causative link between Vitamin D and ASD, and that supplementing Vitamin D is not expected to provide effective improvement for patients with ASD. Our study significantly advances a new perspective in ASD research and has a positive impact on medication guidance for patients with ASD.