By knocking the complement C3-C3aR axis, synaptic damage and cognitive impairment in S. aureus-infected mice were rescued. This evidence concerns the gene C3 and Cognitive impairment.