During a colonoscopy, the doctor may do a biopsy. A biopsy is a sample of tissue taken from the lining of the intestine, to look at under a microscope.