Treatment for insomnia can include lifestyle changes, cognitive behavioral therapy for insomnia (CBT-I), medications like prescription sleep aids, over-the-counter sedating antihistamines, and natural supplements like melatonin. The most effective treatment often depends on the underlying cause of the insomnia.