C3 and Cognitive impairment: These results indicate that S. aureus induces synapse elimination and cognitive impairment by activating microglia and astrocytes through C3-C3aR signaling.