Eszopiclone is a prescription sedative-hypnotic medication used for the short-term treatment of insomnia in adults, specifically for difficulty falling asleep, staying asleep, or waking up too early. It works by slowing brain activity to promote sleep onset and maintenance. It is usually taken just before bed.