Avoid the use of stimulants and depressants such as tobacco, caffeine, and alcohol within 6 hours of bedtime. The best time to drink coffee is in the morning because some people, especially women, cannot clear up the caffeine in their bodies within 12 hours.
Check all of your medications with your doctor to see whether they affect your sleep; you may be able to adjust your prescriptions or schedule to avoid creating sleep problems. Many people take anti-anxiety medications for which one of the side effects is insomnia.
Eat meals at regularly scheduled times, and eliminate late dinners and bedtime snacks, because a full stomach and high blood sugar can keep you awake.
Restrict nighttime liquid consumption to reduce the need to get up to urinate, but don't go to bed thirsty.