Vitamins B12, D, and C, as well as minerals such as iron, magnesium, and zinc, are all important for cognitive health.