Ambien is a brand name for the drug zolpidem, which is used to treat insomnia, a condition where people have trouble falling or staying asleep. It helps you fall asleep faster by calming brain activity. Ambien belongs to a group of medicines called sedative-hypnotics. It’s usually only prescribed for short-term use, like 1 to 2 weeks, because your body can get used to it.