This type of secondary insomnia occurs when your sleep is disrupted by the use of a substance such as alcohol, caffeine, food, or medication.
With alcohol, caffeine and food, sleep problems occur because these substances, when used in high concentrations, stay in your body for several hours after consumption. Research has shown that sleepers who drink large amounts of alcohol before going to bed are often prone to delayed sleep onset, and may also experience sleep disruptions and poor sleep quality. Caffeine is a stimulant, so experts recommend limiting caffeine about four or five hours before bedtime, and eating your last large meal 2 to 3 hours before sleeping. With medication, side effects from certain drugs (allergy, blood pressure, anti-depressant, etc.) can make falling asleep difficult for some people, according to the ASA.
Unfortunately, this type of sleep problem may also occur when you stop using a substance, so weaning yourself off of a substance you normally ingest before bed is better than stopping cold-turkey.
RELATED: 5 Healthy Foods That Are Keeping You Up at Night