Baseline histologic activity predicted colectomy risk in ulcerative colitis treated with biologics, independent of clinical or endoscopic factors.