Background: Previous studies have suggested an inverse association and a hypothesized mutually protective effect between several forms of cancer and late-onset dementia (LOD). Type 2 diabetes (T2DM) is an established important risk factor for both diseases; however, the precise relationships between T2DM, cancer and LOD still remain poorly understood. This thesis investigates the relationship between different cancers and risk of LOD, and explores the role of prediabetes or T2DM in these associations. Methodology: Using the Clinical Practice Research Datalink (CPRD), a massive UK primary care database, in years, 1998-2015, a sample of individuals ≥ 65 years old, with and without T2DM were identified. All individuals aged ≥ 65 years old, with and without a T2DM diagnosis were included in this analysis. Individuals with an LOD diagnosis prior to 65 years of age or prior to a T2DM diagnosis, were excluded. All study participants were followed up from the index date to the censor date. Participants were censored at point of LOD diagnosis, death, end of observation period (2015) or last data upload date (last date of follow-up), whichever came first. It was required that participants have been under observation by CPRD for > 1 year prior to cohort entry. Exploratory analyses were performed to investigate the incidence rates of LOD in both non-T2DM and T2DM cohorts. Cox proportional hazard models, with time-dependent covariates, were used to determine the risk of LOD in individuals with and without a cancer diagnosis in both non-T2DM and T2DM cohorts. The cause-specific hazard ratio (csHR) and sub-distribution hazard ratio (sdHR) for overall LOD and death in individuals with cancer were computed, to account for death as a competing risk. Results: Separate analyses amongst 217,335 individuals with T2DM and 739,061 without T2DM were performed. The mean age (SD) of individuals with T2DM at cohort entry was 71.62 (7.09) years (47.3% females) vs.70.80 (7.66) years (56.9 % females) in the non-T2DM cohort. During follow-up, a total of 165,272 (22 %) and 32,022 (15 %) cancer cases and 51,733 (7 %) and 11,450 (5%) LOD cases were identified in the non-T2DM and T2DM cohorts, respectively. In the non-T2DM cohort, 10,602 (6 %) had both LOD and cancer diagnosis vs.