What is temazepam (Restoril)? Temazepam is in a group of drugs called benzodiazepines (ben-zoe-dye-AZE-eh-peens). Temazepam affects chemicals in the brain that may become unbalanced and cause sleep problems (insomnia). Temazepam is used to treat insomnia symptoms, such as trouble falling or staying asleep.