Zolpidem is a medication primarily used for the short-term treatment of sleeping problems. Guidelines recommend that it be used only after cognitive behavioral therapy for insomnia and behavioral changes, such as sleep hygiene, have been tried. Zolpidem may cause serious or possibly life-threatening sleep behaviors. Some people who took zolpidem got out of bed and drove their cars.