A symptom, which gives the individual a persistent difficulty to fall, and stay, asleep. This is typically followed by functional impairment while awake. Insomnia is usually the symptom of another sleep, medical or psychiatric problem, and very rarely comes by itself. In order to treat the insomnia effectively the underlying illness needs to be diagnosed and then treated.