Ambien is used for the short-term treatment of insomnia (difficulty falling or staying asleep). This medication causes relaxation to help you fall asleep.
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).