Restoril is the brand name for temazepam, a prescription medication belonging to a class of medicines called benzodiazepines. It is primarily prescribed for the short-term treatment of insomnia, especially when a person has difficulty falling asleep or staying asleep. By slowing certain activity in the brain, temazepam produces a calming and sedative effect that can help support sleep