As the prevalence of Type 2 Diabetes Mellitus (T2DM) and Glioblastoma (GBM) rises globally, the relationship between T2DM and GBM remains controversial. This study aims to investigate whether genetically predicted T2DM is causally associated with GBM. We performed bidirectional Mendelian randomization (MR) analysis using data from genome-wide studies on T2DM (N = 62,892) and GBM (N = 218,792) in European populations. The results of the inverse-variance weighted (IVW) approach served as the primary outcomes. We applied Cochran’s Q test and MR-Egger regression for heterogeneity assessment. Leave-one-out analysis was used to evaluate whether any single SNP significantly influenced the observed effect. Our findings reveal a significant causal association between T2DM and an increased risk of GBM (OR [95% CI] 1.70 [1.09, 2.65], P = 0.019). Conversely, the reverse association between T2DM and GBM was insignificant (OR [95% CI] 1.00 [0.99, 1.01], P = 0.408) (P > 0.40). Furthermore, the results from Cochran’s Q-test and funnel plots in the MR-Egger method indicated no evidence of pleiotropy between the SNPs and GBM. Additionally, we mapped causal SNPs to genes and identified 10 genes, including MACF1, C1orf185, PTGFRN, NOTCH2, ABCB10, GCKR, THADA, RBMS1, SPHKAP, and PPARG, located on chromosomes 1, 2, and 3. These genes are involved in key biological processes such as the BMP signaling pathway and various metabolic pathways relevant to both conditions. This study provides robust evidence of a significant causal relationship between T2DM and an increased risk of GBM. The identified SNP-mapped genes highlight potential biological mechanisms underlying this association.