Vomiting and diarrhea can cause the body to lose vital fluids and salts. Irritation to the digestive system usually causes diarrhea and vomiting. The aim in treatment is to prevent dehydration by giving frequent sips of water and oral rehydration solutions, even if the person is vomiting. Cleanliness and hand hygiene can help prevent the spread of infectious diarrhea.