Depression, a leading cause of disability worldwide, is characterized by dysfunction of immature neurons, resulting in dysregulated calcium homeostasis and impaired structural plasticity. Jujuboside A (JuA), a biologically active compound derived from Semen Ziziphi Spinosae, has demonstrated anti-anxiety and anti-insomnia properties. Recent studies suggest that JuA may be a promising antidepressant, but its underlying mechanisms remain unclear. Sprague-Dawley rats were subjected to chronic unpredictable mild stress (CUMS) to induce a depression model. JuA (12.5 mg/kg, 25 mg/kg, 50 mg/kg) was administered orally for 4weeks. Emotional and cognitive function were assessed. Monoamine neurotransmitter levels were measured using enzyme-linked immunosorbent assay (ELISA). The number of immature neurons and calcium homeostasis were evaluated by immunofluorescence. Western blotting and immunofluorescence were employed to detect the expression of Sonic hedgehog (Shh) signaling proteins. Additionally, lentiviral vector expressing Shh shRNA (LV-Shh-RNAi) were infused intracerebrally to investigate the role of Shh in JuA's antidepressant effects. JuA significantly ameliorated depressive-like behavior and cognitive dysfunction in CUMS rats, increased monoamine neurotransmitter levels in serum and hippocampal tissue, reduced the number of BrdU/DCX (bromodeoxyuridine/doublecortin)-positive immature neurons, and attenuated calcium ion (Ca2+) concentration and Ca2+/calmodulin-dependent protein kinase II (CaMKII) levels in immature neurons. JuA also markedly elevated synaptic density and prominence complexity, upregulated Shh, Gli family zinc finger 1 and 2 (Gli1/2), synaptophysin (Syn) and postsynaptic density protein-95 (PSD-95) expression in the ventral dentate gyrus (vDG). However, knockdown of Shh in the vDG counteracted JuA's therapeutic effects. These findings collectively suggest that JuA improves depressive-like behavior in CUMS rats by modulating calcium homeostasis and synaptic structural plasticity in immature neurons through the Shh signaling pathway.