Zolpidem is used to treat a certain sleep problem (insomnia) in adults. It helps you fall asleep faster and stay asleep longer, so you can get a better night's sleep. It may also reduce the number of times you wake up during the night. Zolpidem belongs to a class of drugs called sedative-hypnotics. It acts on your brain to produce a calming effect.