Ambien is a sedative-hypnotic medication primarily used for the short-term treatment of insomnia. It is approved for the treatment of insomnia characterized by difficulty falling asleep or staying asleep. It is intended for short-term use, typically for 7 to 10 days, with a maximum treatment duration of 4 weeks.