Superfoods contribute to cognitive function and brain health by providing nutrients that support brain function and protect against cognitive decline. Foods like fatty fish, walnuts, and flaxseeds contain omega-3 fatty acids, which are essential for brain health and memory. Berries, leafy greens, and dark chocolate are rich in antioxidants that help reduce inflammation and oxidative stress in the brain, supporting overall cognitive function and mental clarity.