Ambien is a brand name for zolpidem, a prescription medication used for the short-term treatment of insomnia, particularly difficulties with falling asleep. It belongs to a group of medicines known as sedative-hypnotics and works by acting on activity in the brain to promote sleep.