Restoril (temazepam) is a benzodiazepine (ben-zoe-dye-AZE-eh-peen). Temazepam affects chemicals in the brain that may be unbalanced in people with sleep problems (insomnia).Restoril is used to treat insomnia symptoms, such as trouble falling or staying asleep.