Foam at the end of stool may be related to dietary factors, but also seen in acute gastroenteritis, inflammatory bowel disease, pancreatitis and other diseases. 1. Dietary factors: frequent consumption of spicy and stimulating, greasy, raw and cold food may stimulate the mucous membrane of the gastrointestinal tract, leading to indigestion, resulting in loose end of the stool foam, usually improve the diet can be improved. 2. Acute gastroenteritis: It is more common that poor diet leads to inflammation of the gastrointestinal tract caused by bacterial infection, resulting in intestinal congestion, edema, and decreased digestive capacity, leading to loose and unshaped stools, with foam at the end. 3. Inflammatory bowel disease: Ulcerative colitis, Crohn’s disease and other inflammatory bowel disease is autoimmune chronic inflammation of the intestinal tract, there can be diarrhea, abdominal pain, accompanied by mucus, pus and blood in the stool, foam. 4. Pancreatitis: Pancreatitis can cause pancreatic exocrine insufficiency, resulting in pancreatic enzyme secretion disorders, causing hypodigestion, resulting in food indigestion, which can be diarrhea, foam at the end of the stool. If there is foam at the end of the stool, after eliminating the physiological reasons, you should go to the hospital in time to find out the reason and standardize the treatment under the guidance of the doctor to avoid delaying the condition.