Ambien is used to treat a specific sleep issue (insomnia) in grown-ups. Ambien has a place with a drug class or class of medicines called sedative-hypnotics.