Insomnia
While insomnia is a common symptom of depression, antidepressants are effective for treating sleep problems whether or not they are associated with depression. While all antidepressants help regulate sleep, some antidepressants such as amitriptyline, doxepin, mirtazapine, and trazodone can have an immediate sedative effect, and are prescribed to treat insomnia. Amitriptyline and doxepin both have antihistaminergic, anticholinergic, and antiadrenergic properties, which contribute to both their therapeutic effects and side effect profiles, while mirtazapine's side effects are primarily antihistaminergic, and trazodone's side-effects are primarily antiadrenergic. Mirtazapine is known to decrease sleep latency (i.e., the time it takes to fall asleep), promoting sleep efficiency and increasing the total amount of sleeping time in people with both depression and insomnia.
Hygiene
Sleep hygiene is the recommended behavioral and environmental practice that is intended to promote better quality sleep. This recommendation was developed in the late 1970s as a method to help people with mild to moderate insomnia, but, , the evidence for effectiveness of individual recommendations is "limited and inconclusive". Clinicians assess the sleep hygiene of people who present with insomnia and other conditions, such as depression, and offer recommendations based on the assessment. Sleep hygiene recommendations include establishing a regular sleep schedule, using naps with care, not exercising physically or mentally too close to bedtime, limiting worry, limiting exposure to light in the hours before sleep, getting out of bed if sleep does not come, not using bed for anything but sleep and avoiding alcohol as well as nicotine, caffeine, and other stimulants in the hours before bedtime, and having a peaceful, comfortable and dark sleep environment.