Microscopically, the inflammation of ulcerative colitis is confined primarily to the mucosa. Here, the mucosa is eroded by an ulcer that undermines surrounding mucosa.