One way to stay mentally sharp as you age is to engage in stimulating activities, such as puzzles, reading, or learning a new skill. Maintaining social connections and relationships is also key, as isolation and loneliness can have negative effects on cognitive function. Finally, taking care of your physical health through exercise, a healthy diet, and adequate sleep can also support brain function.