Ambien is a powerful prescription sleep medication, in addition to being classified as a controlled substance in the United States. It is used to treat insomnia and poor sleep quality, usually prescribed by a psychiatrist as opposed to a primary care or family physician. It falls under the drug category of sedative-hypnotics and functions as a CNS depressant, working by slowing activity in the brain.