We found lipid-related factors including apolipoprotein A, apolipoprotein B, LDL-C, and HDL-C, which are highly correlated with cardiometabolic disorders, were significant mediators of the association between sex and incident dementia. Here, APOB is linked to dementia.