When you vomit or have diarrhea, your body loses fluids and important minerals called electrolytes. This can make you dehydrated and cause health problems.