Rewiring of synaptic circuitry pertinent to memory formation has been associated with morphological changes in dendritic spines and with extracellular matrix (ECM) remodeling. Here, we mechanistically link these processes by uncovering a signaling pathway involving the serotonin 5-HT7 receptor (5-HT7R), matrix metalloproteinase 9 (MMP-9), the hyaluronan receptor CD44, and the small GTPase Cdc42. We highlight a physical interaction between 5-HT7R and CD44 (identified as an MMP-9 substrate in neurons) and find that 5-HT7R stimulation increases local MMP-9 activity, triggering dendritic spine remodeling, synaptic pruning, and impairment of long-term potentiation (LTP). The underlying molecular machinery involves 5-HT7R-mediated activation of MMP-9, which leads to CD44 cleavage followed by Cdc42 activation. One important physiological consequence of this interaction includes an increase in neuronal outgrowth and elongation of dendritic spines, which might have a positive effect on complex neuronal processes (e.g., reversal learning and neuronal regeneration)