Primary insomnia is not directly linked to any other health condition or problem.
Secondary insomnia comes from something else, like a health condition (such as asthma, depression, arthritis, cancer, or heartburn), pain, a medication, or a substance like alcohol.