(CNN)Food choices can make all the difference when it comes to getting a good night's rest.
If you struggle with falling and staying asleep, or wake up feeling tired, it might be time to take inventory of what you're eating and when.
These eight diet habits can cause you to toss and turn, so avoid them for an uninterrupted slumber:
1. Consuming too much caffeine
Caffeine can interfere with sleep even when consumed up to six hours before bedtime, according to one study.