Insomnia is a sleep disorder in which you have trouble falling or staying asleep. Symptoms include: difficulty falling asleep, waking up during the night and having trouble going back to sleep, tiredness upon waking, waking up early in the morning, irritability, anxiety, depression, and difficulty paying attention. Insomnia becomes more common as you age. There are two types of insomnia: primary and secondary. Primary insomnia occurs when you are having trouble sleeping without having any other health issues. When you experience sleep difficulties as a result of a health condition, pain, medication, or substance you are using, you have secondary insomnia. You can also be affected by acute insomnia, which lasts for a few weeks or less, or chronic insomnia, which occurs for at least three times a week for a month or longer. Acute insomnia can be caused by: significant life changes (such as the death of a loved one), illness or emotional or physical discomfort, environmental influences, or some medications. Chronic insomnia may be caused by anxiety, depression, or long-term pain or discomfort at night. A health care provider can use a physical exam and an evaluation of your medical and sleep history to diagnose insomnia. Sleeping pills may be a temporary treatment, however, underlying health conditions that are causing insomnia should also be treated. Insomnia may also be treated using behavioral therapy such as relaxation exercises, sleep restriction therapy, or reconditioning.