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