Melatonin (MLT) is widely used to treat sleep disorders although the underlying mechanism is still elusive. In mice, using wheelârunning detection, we found that exogenous MLT could completely recover the period length prolonged by NâmethylâDâaspartate receptor (NMDAR) impairment due to the injection of the NMDAR antagonist MKâ801, a preclinical model of psychosis. The analysis of the possible underlying mechanisms indicated that MLT could regulate the homeostatic state in the ventrolateral preoptic nucleus (VLPO) instead of the circadian process in the suprachiasmatic nucleus (SCN). In addition, our data showed that MKâ801 decreased Ca2+ârelated CaMKII expression and CREB phosphorylation levels in the VLPO, and MLT could rescue these intracellular impairments but not NMDAR expression levels. Accordingly, Gcamp6 AAV virus was injected inâvivo to further monitor intracellular Ca2+ levels in the VLPO, and MLT demonstrated a unique ability to increase Ca2+ fluorescence compared with MKâ801âinjected mice. Additionally, using the selective melatonin MT2 receptor antagonist 4âphenylâ2âpropionamidotetralin (4PâPDOT), we discovered that the pharmacological effects of MLT upon NMDAR impairments were mediated by melatonin MT2 receptors. Using electroencephalography/electromyography (EEG/EMG) recordings, we observed that the latency to the first nonrapid eye movement (NREM) sleep episode was delayed by MKâ801, and MLT was able to recover this delay. In conclusion, exogenous MLT by acting upon melatonin MT2 receptors rescues sleep phase delayed by NMDAR impairment via increasing intracellular Ca2+ signaling in the VLPO, suggesting a regulatory role of the neurohormone on the homeostatic system.