If you have chronic insomnia, getting treatment for any underlying health condition or other problem may help you to sleep better. If you still have insomnia, your doctor may suggest behavioral therapy, which is often used when insomnia stems from the mind or body being unable to relax. Behavioral therapy teaches you how to change behaviors that worsen insomnia and learn new ways to promote sleep.