Inclusion Criteria:
1. Aged 18 to 70 (inclusive), with a self-reported body mass index (BMI) between 19 and 35 kg/m2 (inclusive).
2. Meet criteria for MDD without psychotic symptoms as defined by the Diagnostic and Statistical Manual of Mental Disorders Fifth Edition (DSM-5) and currently in a MDE as confirmed by the MINI International Neuropsychiatric Interview (MINI).
3. Have not failed more than 2 trials of antidepressant treatments in the current MDE, and have a history of adequate response (clinical outcome rating score of 1 or 2) to at least 1 antidepressant treatment during the current MDE as determined by the Antidepressant Treatment History Form-Short Form (ATHF-SF).
4. Are outpatients.
5. Did not take non-psychotropic or non-central nervous system (CNS) medications suspected to affect sleep-wake function for at least 4 weeks before starting the study.
6. At screening visit 1, self-reported subjective total sleep time (sTST) ≤ 6.5 hours, subjective sleep onset latency (sSOL) ≥ 30 mins, and subjective wake time after sleep onset (sWASO) ≥ 45 mins per night at least three times per week 1 month prior to screening.
7. At screening visit 1, self-reported regular time spent in bed, either sleeping or trying to sleep must be between 7 and 10 hours, inclusive.
8. At screening visit 1, self-reported regular bedtime (i.e., the time the participant gets in bed) between 21:00 and 01:00 and regular wake time (i.e., the time participant wakes and does not go back to sleep) between 05:00 and 10:00.
9. At screening visit 2, confirmation of current insomnia symptoms as determined from responses on the Sleep Diary completed on at least 7 consecutive mornings (minimum 5 of 7 for eligibility), such that sSOL ≥ 30 mins on at least 3 of the 7 nights and/or sWASO ≥ 45 mins on at least 3 of the 7 nights.
10. At screening visit 2, confirmation of sufficient duration of time spent in bed, as determined from responses on the Sleep Diary on the 7 most recent mornings before the visit, such that there are no more than 2 nights with time spent in bed of duration \< 7 hours or \> 10 hours.
11. At screening visit 2, confirmation of regular bedtime (i.e., the time the participant gets in bed) between 21:00 and 01:00 on at least 5 of the 7 preceding nights, and regular wake time (i.e., the time the participant wakes and does not go back to sleep) between 05:00 and 10:00 on at least 5 of the 7 preceding nights.
12. Are able to understand and comply with the requirements of the study, as judged by the investigator(s).
13. Provide written informed consent before initiation of any study-related procedures.
14. Own a smartphone and have reliable access to the internet and a browser on which to complete questionnaires.
Exclusion Criteria:
1. Previously participated in any clinical trial of lemborexant.
2. Have any known sensitivity to lemborexant or their excipients.
3. Failed treatment with an appropriate dose or adequate duration of dual orexin receptor antagonist drugs (efficacy or safety), in the opinion of the investigator.
4. Women who are pregnant or lactating (documented by a positive beta-human chorionic gonadotropin \[beta-hCG\] or human chorionic gonadotropin \[hCG\] urine test with a minimum sensitivity of 25 IU/L or equivalent units of beta-hCG or hCG).
5. Women who are not using any of the following approved and effective method of contraception or family planning during the study: Combined estrogen- and progestogen-containing hormonal contraception associated with inhibition of ovulation (oral, intravaginal, or transdermal), progestogen-only hormonal contraception associated with inhibition of ovulation (oral, injectable, or implantable), intrauterine device, intrauterine hormone-releasing system, bilateral tubal occlusion and litigation, vasectomized partner, sexual abstinence, or two forms of contraception with any barrier method or oral hormones (e.g., condom plus diaphragm, condom or diaphragm plus spermicide, oral hormonal contraceptives plus spermicide or condom).
6. If participating in psychotherapy, must have been in stable treatment for at least 3 months prior to entry into the study, with no anticipation of change in the frequency of therapeutic sessions or the therapeutic focus 4 weeks before screening and the entire duration of participation.
7. Unable to keep any current psychiatric medications unchanged for 4 weeks before screening and for the entire duration of participation in the study.
8. Have active suicidal intent as determined by a score of 3 (severe suicidality with a clear plan and/or intent) or 4 (very severe: suicidal attempts) on item #3 on the HAM-D-17.
9. Have had a course of electroconvulsive therapy or intravenous ketamine therapy in the current episode or any previous episode.
10. According to medical history, have had insomnia associated with another sleep disorder or have a history of any condition that impacted or was likely to impact sleep, including any lifetime diagnosis of sleep-related breathing disorder, periodic limb movement disorder, restless legs syndrome, nightmare disorder, sleep terror disorder, sleepwalking disorder, rapid eye movement (REM) behaviour disorder, or narcolepsy.
11. Exclusionary score on screening instruments to rule out individuals with symptoms of certain sleep disorders other than insomnia: Snoring, Tiredness, Observed Apnea, High Blood Pressure, BMI, Age, Neck circumference, and Gender (STOP-Bang) scores ≥ 5; International Restless Legs Scale (IRLS) scores ≥ 16, Epworth Sleepiness Scale (ESS) \> 15.
12. Habitual naps during the day more than 3 times/week.
13. Transmeridian travel across more than 3 time zones in the 2 weeks before screening, or between screening and study baseline, or plans to travel across more than 3 time zones during the study.
14. Used any modality of treatment for insomnia, including cognitive-behavioural therapy or cannabis within 2 weeks before screening.
15. Excessive caffeine use that in the opinion of the investigator contributes to the participant's insomnia, or habitually consumes caffeine-containing beverages after 18:00.
16. Reports habitually consuming more than 14 drinks containing alcohol per week (females) or more than 21 drinks containing alcohol per week (males).
17. Used prohibited prescriptions or over-the-counter concomitant medications, or used any medication or sleep aid with known effects on sleep within 2 weeks before screening.
18. Comorbid nocturia that is causing or exacerbating the insomnia.
19. Report a history of sleep-related violent behaviour, or sleep driving, or any other complex sleep-related behaviour (e.g., making phone calls, preparing and eating food).
20. Report symptoms potentially related to narcolepsy that in the clinical opinion of the investigator indicates the need for a diagnostic referral for the presence of narcolepsy.
21. For participants who underwent polysomnography (PSG) within the previous year before informed consent:
1. Age 18-64 years old, inclusive: Apnea Hypopnea Index ≥ 10, or Periodic Limb Movement with Arousal Index ≥ 10.
2. Age ≥ 65 years old: Apnea Hypopnea Index \> 15, or Periodic Limb Movement with Arousal Index \> 15.
22. Diagnosis of substance dependence or abuse within the last 3 months as determined by MINI.
23. Lifetime history of bipolar I or II disorder, schizophrenia, schizoaffective disorder, schizophreniform disorder, delusional disorder, or current psychotic symptoms as determined by MINI.
24. Have a MINI diagnosis of obsessive-compulsive disorder, post-traumatic stress disorder (current), assessed by a study investigator to be primary and causing greater impairment than MDD.
25. Have a diagnosis of any personality disorder that is assessed by a study investigator to be primary and causing greater impairment than MDD.
26. Have a concomitant major unstable medical illness, cardiac pacemaker, or implanted medication pump.
27. Have any significant neurological disorder or insult including, but not limited to: any condition likely to be associated with increased intracranial pressure, space occupying brain lesion, any history of seizure except a febrile seizure of infancy, cerebral aneurysm, Parkinson's disease, Huntington's chorea, multiple sclerosis, significant head trauma with loss of consciousness for greater than 5 minutes.
28. A history of risk factors for Torsade de Pointes (e.g., heart failure, hypokalemia, family history of long QT syndrome) or the use of concomitant medications that prolonged the QTcF interval.
29. Scheduled for major surgery during the study.
30. Have a clinical finding that is unstable or that, in the opinion of the investigator(s), would be negatively affected by the study medication or that would affect the study medication (e.g., diabetes mellitus, hypertension, unstable angina).
31. Have uncorrected hypothyroidism or hyperthyroidism. Subjects needing a thyroid hormone supplement to treat hypothyroidism must have been on a stable dose of the medication for 30 days prior to enrolment.
32. Have any other condition that, in the opinion of the investigator(s), would adversely affect the subject's ability to complete the study or its measures.
33. Justifications for any exclusions based on race, gender, or ethnicity: Non-English-speaking individuals are excluded because the ability to communicate study information, answer questions accurately and completely about the study, and obtain consent are necessary.