The present study shows that active immunization with C5a-peptide vaccines AFF1 and AFF2 elicits antibodies that effectively bind C5a and reduce the number of activated microglia in the hippocampus, accompanied by memory improvements in a mouse model of AD. Here, C5 is linked to Alzheimer disease.