Dementia is multifactorial with Alzheimer (AD) and vascular (VaD) pathologies making the largest contributions. Genome-wide association studies (GWAS) have identified over 70 genetic risk loci for AD but the genomic determinants of other dementias, including VaD remain understudied. We hypothesize that common forms of dementia will share genetic risk factors and conducted the largest GWAS to date of "all-cause dementia" (ACD) and examined the genetic overlap with VaD. Our dataset includes 809,299 individuals from European, African, Asian, and Hispanic ancestries with 46,902 and 8,702 cases of ACD and VaD, respectively. We replicated known AD loci at genome-wide significance for both ACD and VaD and conducted bioinformatic analyses in prioritizing genes that are functionally relevant and shared with closely related traits and risk factors. For ACD, novel loci were associated with energy transport throughout the brain (SEMA4D), neuronal excitability (ANO3), amyloid plaques deposition in the brain (RBFOX1), and MRI markers of small vessel disease (HBEGF). Novel VaD loci were associated with hypertension, diabetes, and neuron maintenance (SPRY2, FOXA2, AJAP1, and PSMA3). In addition to the genetic overlap with neurodegenerative processes, genetic risk loci for ACD exhibited overlap with vascular risk factors (Type-II diabetes, blood pressure, lipid levels) and MRI markers of cerebral small vessel disease (cSVD). Our study identified genetic risk loci underlying ACD and VaD that point to the involvement of specific biological pathways and highlights their genetic overlap with vascular risk factors and MRI markers of cSVD. These novel insights could lead to new prevention and treatment strategies.