Insomnia, the inability to get to sleep or sleep well at night, can be caused by stress, jet lag, a health condition, the medications you take, or even the amount of coffee you drink. Insomnia can also be caused by other sleep disorders or mood disorders such as anxiety and depression.