 The most common cause is an infection of the intestines due to either a virus, bacteria, or parasite—a condition also known as gastroenteritis.These infections are often acquired from food or water that has been contaminated by feces, or directly from another person who is infected.The three types of diarrhea are