A colonoscopy is a test that examines the large intestine by inserting a small tube into the rectum. The procedure lets the doctor examine the area and remove a tissue sample if necessary.

A colonoscopy can help identify ulcers, bleeding, tumors or inflamed tissue. It is a primary method used to diagnose Crohn's disease and ulcerative colitis.