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, APOB is linked to dementia.