In patients with ulcerative colitis, surgical treatment is considered an option in cases where medical therapy is ineffective or severe symptoms persist. In this procedure, the entire large intestine is removed.