This study will determine the effectiveness of cognitive behavioral therapy (CBT) in treating insomnia symptoms that are secondary to depression. This study will also determine how long the benefits of CBT will last and how the recurrence of insomnia is associated with the onset of new depressive episodes.