Ambien is a brand name for the drug zolpidem, which is used to treat insomnia. It is a sedative-hypnotic medication that slows down brain activity to induce sleep. Ambien is typically prescribed for short-term use, usually no longer than two weeks, to help with difficulty falling asleep or staying asleep.