What is the treatment for diarrhea, nausea, and vomiting? The fluid and electrolytes lost during diarrhea and vomiting need to be replaced promptly because the body cannot function without them. Although water is extremely important in preventing dehydration, it does not contain electrolytes.