Zolpidem is a sedative, also called a hypnotic. It affects chemicals in your brain that may become unbalanced and cause sleep problems (insomnia). Zolpidem is used to treat insomnia. The immediate-release forms of zolpidem are Ambien, Intermezzo, Edluar, and Zolpimist, which are used to help you fall asleep. The extended-release form of zolpidem is Ambien CR, which has a first layer that dissolves quickly to help you fall asleep, and a second layer that dissolves slowly to help you stay asleep. Ambien, Edluar, and Zolpimist are used to help you fall asleep when you first go to bed. Intermezzo, is used to help you fall back to sleep if you wake up in the middle of the night and then have trouble sleeping. Your doctor will determine which form of zolpidem is best for you. Zolpidem may also be used for purposes not listed in this medication guide.