Oral rehydration solutions are used to treat dehydration that results from excessive vomiting or diarrhea. The solutions are a mixture of water, sugar, and the electrolytes sodium and potassium, which can hydrate the body more effectively than water alone.