Klonopin belongs to the benzodiazepine family of pharmaceuticals (other examples include Xanax, Rohypnol, and Valium, to name a few). Klonopin works as an anxiolytic (antianxiety) drug, typically used in the treatment of anxiety and panic disorders.
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.