Being hydrated can help you sleep better, but it can also mean you need to pee more during the night. Tips for nighttime hydration include drinking sips of water for the last 2 hours before bedtime and if you wake up in the night, limiting alcohol consumption, ensuring the room is cool so you don't sweat, and eating plenty of whole fruits and vegetables during the day so you don't go to bed dehydrated.