Introduction: Type 2 diabetes is a risk factor for dementia and Parkinson's disease (PD). Drug treatments for diabetes, such as metformin, could be used as potential novel treatments for these neurological conditions. Using medical records from the USA (OPTUM) we aimed to assess the association of metformin with all cause dementia, dementia subtypes, and PD compared to sulfonylureas. Research Design and Methods: A new user comparator study design was conducted in patients >50 years old with diabetes who were new users of metformin or sulfonylureas between 2006-2018. Primary outcomes were all cause dementia and PD. Secondary outcomes were Alzheimer's disease (AD), vascular dementia (VD), and mild cognitive impairment (MCI). Cox proportional hazard models with inverse probability of treatment weighting (IPTW) were used to estimate the hazard ratios (HR). Sub analyses included stratification by age, race, renal function, and glycemic control. Results: We identified 96,140 and 16,451 new users of metformin and sulfonylureas…