Diarrhea can have many possible causes, such as stomach flu, eating too much fruit or fiber, or food poisoning, in which you've ingested contaminated food or water. Diarrhea is also a side effect of many medications. Chronic diarrhea may be due to a health condition, like celiac disease or inflammatory bowel disease, or a food intolerance, like fructose or lactose malabsorption.