Aging-related reduction in androgen levels may be a possible risk factor for neurodegenerative diseases and contribute to cognitive impairment. Androgens may affect synaptic function and cognition in an androgen receptor (AR)-independent manner; however, the mechanisms connecting theses effects are unknown. Therefore, we used testicular feminization mutation (Tfm) male mice, a model with AR mutation, to test the effects of testosterone on synaptic function and cognition. Our results showed that testosterone ameliorated spatial memory deficit and neuronal damage, and increased dendritic spines density and postsynaptic density protein 95 (PSD95) and glutamate receptor 1 (GluA1) expression in the hippocampus of Tfm male mice. And these effects of testosterone were not inhibited by anastrozole, which suppressed conversion of testosterone to estradiol. Mechanistically, testosterone activated the extracellular signal-related kinase 1/2 (Erk1/2) and cyclic adenosine monophosphate response element-binding protein (CREB) in the hippocampus of Tfm male mice. Meanwhile, Erk1/2 inhibitor SCH772984 blocked the upregulation of phospho-CREB, PSD95, and GluA1 induced by testosterone in HT22 cells pretreated with flutamide, an androgen antagonist. Collectively, our data indicate that testosterone may ameliorate hippocampal synaptic damage and spatial memory deficit by activating the Erk1/2–CREB signaling pathway in an AR-independent manner.