Depends on cause
Worst case is perforation or hole in gut and will need surgery.
More commonly is the break down of the junctions between cells that line the gut. This can be caused by an infection or commonly a condition called celiac disease
most infections resolve with time celiac disease requires special diet
and lastly crohns disease or ulcerative colitis
may require immune suppressive therapy.