Toxic megacolon is mainly seen in ulcerative colitis and pseudomembranous colitis, two chronic inflammations of the colon (and occasionally, in the other type of inflammatory bowel disease, Crohn's disease). Its mechanism is incompletely understood. It is probably due to an excessive production of nitric oxide, at least in ulcerative colitis.