Zolpidem is a prescription medication primarily used for the short-term treatment of insomnia. It belongs to a class of drugs known as sedative-hypnotics, which work by affecting chemicals in the brain that may be unbalanced in people with sleep problems. Zolpidem can help you fall asleep faster, stay asleep longer, and wake up feeling more refreshed.