Ambien works similarly to benzodiazepines, as it serves the same medical purpose. But unlike Xanax and Klonopin, two well-known Benzos, Ambien does not contain the same hazardous and habit-forming chemical compounds found in this drug class.