Insomnia is when you have trouble falling or staying asleep. It can happen to everyone once in a while, but if you often have trouble sleeping or waking too early, or if it goes on for weeks, you should talk to your doctor.
Many things can cause you to sleep poorly: pain, depression, medication or sleep disorders. But the most common cause of insomnia is poor sleep habits (called sleep hygiene). Lifestyle factors like drinking too much caffeine or alcohol, keeping an erratic sleep schedule, reading or watching TV in bed can all cost you important rest.