Foamy stools may be caused by indigestion, intestinal flora imbalance, intestinal infections and other illnesses, and you should consult a doctor in time to find out the cause. 1. Indigestion: Poor diet or bad eating habits, such as excessive consumption of too cold or greasy food, may cause indigestion, which makes the food stay in the stomach for too long and produce gas after being fermented and decomposed by bacteria, thus leading to foamy bowel movements. 2. Intestinal flora imbalance: due to irrational or abusive use of antimicrobial drugs, lack of gastric acid and other causes of intestinal flora imbalance, so that the intestinal flora is destroyed, the gas-producing bacteria breeding, which leads to foamy stools, the patient may be accompanied by diarrhea, abdominal distension, abdominal discomfort and other symptoms. 3. Intestinal infections: mainly caused by viruses, bacteria and other pathogens, patients can have watery diarrhea, which can be eggdrop soup-like or white foamy stools, accompanied by a special smell, and in severe cases, it can lead to dehydration, acidosis and so on. Patients who have long-term foamy stool, there may be other diseases, such as irritable bowel syndrome, intestinal tumors, chronic pancreatitis, bacillary dysentery, etc., should be timely consultation, by the doctor to improve the fecal routine, anal fingerprinting, and other related examinations, to clarify the specific causes of the disease, and the corresponding treatment.