Restoril is used to treat insomnia symptoms, such as trouble falling asleep or staying asleep. Take restoril exactly as it was prescribed for you. Follow all directions on your prescription label. Never use restoril in larger amounts, or for longer than prescribed. Tell your doctor if the medicine seems to stop working as well in treating your symptoms. Since restoril is taken only at bedtime, you will not be on a frequent dosing schedule. This medicationis used to treat a certain sleep problem (insomnia).It may help you fall asleep faster, stay asleep longer, and lessen how often you wake up during the night, so you can get a better night’s rest. Temazepam belongs to a class of drugs called sedative-hypnotics. It acts on your brain to produce a calming effect. Use of this medication is usually limited to short treatment periods of 1 to 2 weeks or less. If your insomnia continues for a longer time, talk to your doctor to see if you need other treatment. .