Multivariate MR analysis revealed that there was still a significant causal relationship between JAK2 and ED under the effect of adjusting diabetes (OR = 1.084, 95% CI = 1.013–1.154, p = 0.026). The gene discussed is JAK2; the disease is diabetes mellitus.