Insomnia can be caused by conditions such as depression. Psychological struggles can make it hard to sleep, insomnia itself can bring on changes in mood, and shifts in hormones and physiology can lead to both psychiatric issues and insomnia at the same time.