While caffeine is a mild diuretic, it’s a myth that drinking coffee (or tea) causes dehydration – something I only learned in the last year or two. The BBC has a decent article on this topic:
http://www.bbc.com/future/story/20140402-are-coffee-and-tea-...