Both chronic pain and sleep disorders are prevalent and potentially very debilitating problem. The prevalence of insomnia in people with chronic pain seems to be about 50%, but figures up to 88% have been reported. Cognitive behavioral therapy for insomnia (CBT-I) has been shown to be an effective treatment for both primary insomnia and co-morbid insomnia. CBT-I is a psychotherapeutic multicomponent treatment that seeks to influence the behaviors and cognitions which perpetuates the problem. Usually, the treatment is 6-8 weeks long with one session a week, individually or in a small group setting.