Restoril belongs to a class of drugs called sedative-hypnotics. It is primarily used to treat insomnia, a sleep disorder characterized by difficulties falling asleep or staying asleep. Zolpidem works by affecting certain chemicals in the brain to help induce sleep.