If we cannot sleep, it means that cortisol production is occurring at night, indicating that something is making it necessary for us to remain alert even then. This nighttime cortisol production is caused by an active conflict state, during which our body (even at night) mobilizes its reserves and focuses our attention on resolving the problematic situation.