Diarrhea is caused by various factors, including viral infections, bacterial infections (such as E. coli and Salmonella), parasitic infections, and food intolerances. Poor sanitation and contaminated water are significant contributors. The effects of diarrhea include dehydration, electrolyte imbalance, and malnutrition, particularly in vulnerable populations like children and the elderly.