BackgroundThere is a substantial body of observational research indicating an association between hearing impairment and dementia, yet the causal relationship and underlying mechanisms remain uncertain. This study aims to investigate the causal relationship between hearing impairment and its subtypes with dementia and cognitive function using two-sample Mendelian randomization (MR) analysis.MethodsWe performed two-sample MR analysis to examine the causal effects of hearing impairment and its subtypes, including conductive and sensorineural hearing loss (CSHL), conductive hearing loss (CHL), sensorineural hearing loss (SHL), and sudden sensorineural hearing loss (SIHL), on six dementia phenotypes (overall dementia, Alzheimer’s disease [AD], Lewy body dementia [DLB], frontotemporal dementia [FTD], Parkinson’s disease dementia, and vascular dementia) and four cognitive functions. Additionally, multivariable MR (MVMR) analysis was employed to investigate potential mediating mechanisms.ResultsGenetically determined CSHL was associated with an elevated risk of DLB (odds ratio [OR] 1.69; 95% CI 1.08 to 2.63; P = 0.021) and FTD (OR 1.66; 1.04 to 2.67; P = 0.035), but not AD (P = 0.958). Genetic predisposition to CHL was found to link with increased risks of AD (OR 1.07; 1.01 to 1.14; P = 0.031). Genetically determined SHL was causally associated with an elevated risk of semantic dementia (OR 3.81; 1.09 to 13.37; P = 0.037). Genetically predicted CHL and SIHL were both causally associated with lower general cognitive performance (β -0.015 and − 0.043; P = 0.007 and 0.013) and fluid intelligence score (β -0.045 and − 0.095; P = 0.037 and 0.040). In MVMR analysis, the causal relationship between hearing impairment and dementia was mediated by loneliness, depressed mood, and brain cortical volume, particularly the medial temporal lobe, but not by aging or ischemic stroke.ConclusionOverall, the study provides evidence supporting a causal relationship between hearing impairment and increased risks of different types of dementia (including AD, FTD, and DLB), as well as poorer general cognitive function. These findings underscore the importance of addressing hearing impairment as a modifiable risk factor for dementia.