You can treat insomnia by changing your sleep habits, including your routine and caffeine consumption. You can also avoid lifestyle habits that cause stress. Once you and your doctor evaluate all possible causes, insomnia may resolve. Often, acute insomnia does not require treatment as it is likely due to a sudden change or event in a person's life. Once you identify that specific stressor, you can work to resolve it. Chronic insomnia, however, typically takes time to improve and resolve.