Even mild dehydration can impair cognitive function, mood, and energy levels, so staying hydrated is very important. Water is necessary for the brain to produce neurotransmitters and hormones that regulate mood. Dehydration can lead to confusion, irritability, and difficulty concentrating, which can worsen symptoms of anxiety and depression.