The individuals of most vertebrate species die when they can no longer reproduce. Humans are a rare exception, having evolved a prolonged postreproductive lifespan. Elders contribute to cooperative offspring care, assist in foraging, and communicate important ecological and cultural knowledge, increasing the survival of younger individuals. Age-related deterioration of cognitive capacity in humans compromises these benefits and also burdens the group with socially costly members. We investigated the contribution of the immunoregulatory receptor CD33 to a uniquely human postreproductive disease, Alzheimer’s dementia. Surprisingly, even though selection at advanced age is expected to be weak, a CD33 allele protective against Alzheimer’s disease is derived and unique to humans and favors a functional molecular state of CD33 resembling that of the chimpanzee. Thus, derived alleles may be compensatory and restore interactions altered as a consequence of human-specific brain evolution. We found several other examples of derived alleles at other human loci that protect against age-related cognitive deterioration arising from neurodegenerative disease or cerebrovascular insufficiency. Selection by inclusive fitness may be strong enough to favor alleles protecting specifically against cognitive decline in postreproductive humans. Such selection would operate by maximizing the contributions of postreproductive individuals to the fitness of younger kin.