BackgroundMajor depressive disorder (MDD) and frailty impose substantial health and economic burdens. MDD is recognized as a significant risk factor for frailty, but the genetic associations between these conditions remain unclear. This study investigates the genetic correlation, shared pleiotropic loci, causal relationships, and comorbid genes between MDD and frailty. MethodsThe genetic correlation between MDD and frailty was assessed using linkage disequilibrium score regression (LDSC) based on data from genome-wide association studies (GWAS). A detailed analysis was performed to identify shared pleiotropic loci and causal relationships through cross-phenotype association tests and Mendelian randomization. Additionally, tissue enrichment analysis was conducted using stratified LDSC, gene-based associations with both conditions were assessed using Multimarker Analysis of Genomic Annotation (MAGMA), and pathway analysis of comorbid genes was performed using the g: GOSt tool. ResultsOur findings revealed a significant positive genetic correlation between MDD and frailty (rg = 0.65, P = 1.49E−219). We identified 57 shared risk SNPs between the two conditions, including 6 novel SNPs. Mendelian randomization analyses indicated robust causal effects of MDD on frailty and vice versa. Furthermore, we observed tissue-specific heritability enrichment in 9 brain tissues. By combining MAGMA and CPASSOC analyses, we identified 10 comorbid genes associated with both MDD and frailty, primarily involved in synapse formation, modulation, plasticity, and desaturase activity. ConclusionThis study provides strong evidence for a shared genetic basis between MDD and frailty. The identification of comorbid genes offers new insights into the mechanisms underlying the relationship between these conditions.