Caffeine, heavy meals, alcohol, sugar, and a lack of magnesium or B vitamins ... while magnesium is known to support sleep. “Try not to drink excessive amounts of fluids before bedtime,” advises Malik ...