Zolpidem is used to treat a certain sleep problem (insomnia). If you have trouble falling asleep, it helps you fall asleep faster, so you can get a better night's rest. Zolpidem belongs to a class of drugs called sedative-hypnotics. It acts on your brain to produce a calming effect. Use of this medication is usually limited to short treatment periods of 1 to 2 weeks or less. If your insomnia continues for a longer time, talk to your doctor to see if you need other treatment.