Recent studies have shown that a 9-hour fast in mice reduces the amount of time spent immobile in the forced swimming test. However, whether 9-hour fasting has therapeutic effects in female mice with depressive symptoms has not been established. Therefore, in this study, we simulated perimenopausal depression via an ovariectomy in mice, and subjected them to a single 9-hour fasting 7 days later. We found that the ovariectomy increased the time spent immobile in the forced swimming test, inhibited expression of the mammalian target of rapamycin complex 1 signaling pathway in the hippocampus and prefrontal cortex, and decreased the density of dendritic spines in the hippocampus. The 9-hour acute fasting alleviated the above-mentioned phenomena. Furthermore, all of the antidepressant-like effects of 9-hour fasting were reversed by an inhibitor of the mammalian target of rapamycin complex 1. Electrophysiology data showed a remarkable increase in long-term potentiation in the hippocampal CA1 of the ovariectomized mice subjected to fasting compared with the findings in the ovariectomized mice not subjected to fasting. These findings show that the antidepressant-like effects of 9-hour fasting may be related to the activation of the mammalian target of the rapamycin complex 1 signaling pathway and synaptic plasticity in the mammalian hippocampus. Thus, fasting may be a potential treatment for depression.