Ambien, known generically as zolpidem, is a prescription medication used primarily for the short-term treatment of insomnia. It is classified as a non-benzodiazepine sedative-hypnotic and works by affecting certain chemicals in the brain to promote sleep. Ambien is commonly prescribed for individuals experiencing difficulty falling asleep or staying asleep.