LUNESTA, or eszopiclone, is a prescription medication prescribed for insomnia. LUNESTA belongs to a class of drugs known as sedative-hypnotics. LUNESTA may help patients fall asleep and stay asleep longer.