Zolpidem is a prescription medication used for the treatment of insomnia and some brain disorders. Clinicians prescribe zolpidem for short-term (usually about two to six weeks) treatment of insomnia.