How can I prevent dehydration during hot weather?

How can I prevent dehydration during hot weather?