Cognitive behavioral therapy for insomnia (CBT-I) can help people change the way they think, behave, and feel about sleep to improve their sleep quality.