Ambien (zolpidem tartrate) is a medication that belongs to the class of meds known as benzodiazepines. It is primarily used to treat insomnia and promote restful sleep. Ambien works by slowing down activity in the brain, helping you fall asleep faster and sleep through the night.