This randomized controlled trial compared modified Suanzaoren decoction to zolpidem in 80 post-stroke patients with cognitive impairment and insomnia. The results show that M-SZRD was superior to zolpidem in improving cognitive function after 4 weeks of treatment, while both treatments were similarly effective for improving insomnia.