Zolpidem is a sedative primarily used for the treatment of trouble sleeping. Clinicians prescribe zolpidem for short-term (usually about two to six weeks) treatment of insomnia.