A rectal biopsy is a medical procedure in which a small sample of tissue is taken from the rectum for examination under a microscope. This procedure is used to diagnose and evaluate various conditions affecting the rectum, such as infections, inflammatory diseases, tumors, and other abnormalities. The biopsy helps identify the cause of symptoms like rectal bleeding, pain, or changes in bowel habits.