Ambien induces sleep and causes relaxation. It is used to treat sleep disorders such as trouble falling asleep, waking up many times during the night, or waking up too early in the morning. Ambien is in a class of drugs called sedative/hypnotics or sleep medications. Ambien affects chemicals in your brain that may become unbalanced and cause insomnia.