Temazepam is a commonly prescribed medication for insomnia. It belongs to the group of benzodiazepines, which work by slowing down activity in the body. This results in a relaxing effect that helps you fall asleep and stay asleep. Produced by Teva, a well-known drug manufacturer, Temazepam is available in tablet form and comes in different dosages.