Foamy stool may be caused by poor diet and enteritis. 1. Poor diet: When patients eat cold or spicy food for a long time, it may cause gastrointestinal stimulation, which may make the stools not shaped and foamy stools appear. Eating a lot of food with high protein content, such as eggs, can also cause foamy stools. 2. Enteritis: Enteritis is mostly caused by unclean diet or infection. After suffering from this disease, the patient may have a change in the stool pattern as well as abdominal pain and many other manifestations, which can also lead to the above symptoms. Foamy stools can also be caused by other reasons, so it is recommended that patients go to the hospital in time and choose the appropriate method of treatment.