The invention relates to a medicament, for treating and improving the restorative quality of sleep, in a patient suffering from primary insomnia, which comprises at least one compound selected from melatonin, other melatonergic agents, melatonin agonists and melatonin antagonists, in an effective amount within the range of 0.0025 to 50 mg, and optionally one or more other therapeutically active agents.