The present study utilized the spared nerve injury (SNI) to create a mouse model of depression to investigate the impact of esketamine on depressive-like behaviors, on the expression of PSD-95 and CRMP2 proteins, and on changes in neuronal dendritic spine plasticity in the prefrontal cortex (PFC). Depressive-like behavioral tests were performed 1 h after esketamine treatment, and the PFC tissues were obtained on the fourth day after completing the behavioral tests. Then, dendritic spine density and morphology in the PFC were measured using Golgi staining, and CRMP2 and PSD-95 proteins were obtained from PFC tissue by western blotting. The results of this study showed that esketamine significantly increased the immobility time in the forced swimming test and tail suspension test. In the open field test, esketamine increased the time spent in the open arms, the time spent in the central area, and the total distance covered. It also increased the protein expression levels of CRMP2 and PSD-95 in addition to the total and mature dendritic spine density of the PFC in SNI-depressed mice. Esketamine can significantly improve depression-like behaviors in SNI-depressed mice and promote an increase in dendritic spine density and maturation in the PFC. These effects may be associated with changes in CRMP2 and PSD-95 expression.