Lunesta (eszopiclone) is a prescription oral tablet used to treat insomnia in adults. Lunesta contains the active ingredient eszopiclone. It belongs to a group of drugs called sedative-hypnotics.