We found both ApoB and the ApoB/ApoA1 ratio to be associated with higher risk of dementia only in women, and only when the follow‐up was over 20 years. Here, APOA1 is linked to dementia.