A method of treating or preventing cognitive impairment deficits in subjects with age-associated cognitive decline or a dementing illness includes administering to the subject a therapeutically effective amount of amylin, an amylin agonist, or an amylin derivative to treat the cognitive impairment or deficit.