Diarrhea may be caused by: lactose intolerance. bacterial infection. damage to intestinal wall. hormone-producing tumors (including certain types of pancreatic neuroendocrine tumors) inflammation or ulceration of the bowel. malabsorption caused by surgery that has shortened the intestines. pancreatic enzyme insufficiency.