The most common cause of diarrhea is a virus that infects your bowel (“viral gastroenteritis”). The infection usually lasts a couple of days and is sometimes called “intestinal flu.” Other possible causes of diarrhea can include: Infection by bacteria.