The first thing is to remove all offending toxins. There may be one or more things in diet and environment that is irritating the system and the bowels. Play detective.
Wheat and dairy are notorious for bowel trobules.
Then and only then can healing begin with healthy nutrition leading the way.