Objective To investigate the causal relationship between serum magnesium concentration and hypertension with a two-sample Mendelian randomization (MR) approach. Methods Based on summary-level data from GWAS, serum magnesium concentration was used as the exposure factor and hypertension as the outcome variable, and single nucleotide polymorphisms (SNPs) satisfying the core assumptions of MR were selected as instrumental variables. Five MR analysis methods—inverse-variance weighted (IVW), weighted median estimator (WME), MR-Egger regression, weighted mode, and simple mode—were employed to estimate causal effects, with the IVW method serving as the primary analysis. The MR-Egger intercept test was used to assess horizontal pleiotropy, and leave-one-out method was performed for sensitivity analysis. Results A total of 4 SNPs were selected as instrumental variables and included in the analysis. Result of the IVW method (primary analysis) showed no statistically significant causal relationship between serum magnesium concentration and hypertension (OR=1.110, 95%CI: 0.825-1.493, P=0.491); the estimated directions of the MR-Egger regression, simple mode, and weighted mode methods were consistent with that of the IVW method (all P>0.05). The WME analysis results showed a statistically significant association between the two (OR=1.135, 95%CI: 1.014-1.270, P=0.028). In the sensitivity analysis, the MR-Egger intercept test provided no statistical evidence of horizontal pleiotropy (intercept=-0.002, P=0.467); the leave-one-out analysis demonstrated that the main estimates from the IVW method remained stable after sequentially removing each SNP individually (all 95%CIs crossed the null line). Conclusion The primary analysis of this study (IVW method) found no causal association between serum magnesium concentration and hypertension, whereas the WME method suggested a potential causal association. Given the heterogeneity of results across different methods and the limited number of instrumental variables, the current evidence is insufficient to support a definite causal association between the two; therefore, further studies with larger sample sizes are warranted for validation in the future.