
IMPORTANT: this article is educational. Prescription sleep medication requires a doctor, and nothing here is a recommendation to start, stop or change any prescribed treatment.
It is written because a great many people search for this without being told the full picture, and the information should be available plainly.
Prescription sleep medication mainly falls into a few categories:
Benzodiazepines — act on GABA receptors, suppressing central nervous system activity
Z-drugs — act on similar receptors, developed to reduce some benzodiazepine drawbacks
Sedating antidepressants — sometimes prescribed at low doses for sleep
Antihistamines — some over-the-counter sleep aids rely on the sedating effect of older antihistamines
These are sedatives. They suppress arousal rather than adjusting your body clock, which makes them fundamentally different from melatonin.

Next-day drowsiness and sedation, which is the most frequent
Impaired coordination and increased fall risk, particularly in older adults
Memory problems, especially difficulty forming new memories around the time of dosing
Dizziness and confusion
Dry mouth and altered taste
Headache
Reduced concentration affecting work and driving safety
Next-day impairment is the one people most consistently underestimate. Driving the morning after a sedative is a genuine safety consideration.
Complex sleep behaviours — sleepwalking, sleep-driving, sleep-eating, with no memory of them. Regulatory authorities have issued warnings about this with certain Z-drugs.
Respiratory depression, particularly dangerous combined with alcohol or opioids
Worsening depression or suicidal thinking in some people
Paradoxical agitation rather than sedation
Anyone experiencing complex sleep behaviours should contact their doctor promptly.

The most consequential issue, and the reason these are prescribed short-term.
Tolerance means the same dose stops working, prompting escalation. Physical dependence means stopping produces withdrawal — anxiety, agitation, and rebound insomnia frequently worse than the original problem.
That rebound is what traps people. Sleep gets worse on stopping, which feels like proof the medication was necessary, when it is actually withdrawal.
This is why these drugs are typically intended for short courses rather than ongoing use, and why stopping should be done gradually with medical supervision rather than abruptly.

Sedatives increase sleep time asleep. Research indicates they can also alter sleep architecture, reducing the proportion of deep and REM sleep.
This is part of why people can sleep eight hours on a sedative and still wake unrefreshed. The duration improved; the composition did not.

Since this site sells a melatonin product, the comparison should be precise rather than promotional.
Melatonin is a hormone that signals biological night. It does not sedate, does not appear to produce comparable physical dependence or tolerance escalation, and largely preserves sleep architecture at sensible doses.
It is also considerably weaker in effect, and it helps with a narrower problem — circadian timing rather than severe insomnia. If your insomnia is severe enough that a doctor is considering a sedative, melatonin is unlikely to be an adequate substitute.
Different tools for different problems, not a stronger and weaker version of the same thing.
Cognitive behavioural therapy for insomnia has stronger evidence than medication for chronic insomnia, and its benefits persist after treatment ends — which is not true of sedatives.
It is recommended as first-line treatment in multiple clinical guidelines and is substantially under-used in India. If you have had insomnia for three months or more, ask your doctor about it by name.
This article is for general information and is not medical advice. Never start, stop or adjust prescription medication without your doctor.