Lunesta is a brand name for the medication known as eszopiclone. It is a non-benzodiazepine sedative-hypnotic primarily used for the treatment of insomnia. It works Lunesta works by enhancing the activity of the neurotransmitter gamma-aminobutyric acid (GABA) in the brain. GABA helps to calm down brain activity and induce sleep.