A biopsy is a diagnostic procedure in which a small sample of tissue is removed from the body to be examined under a microscope. This process helps determine whether cells are normal or abnormal and is commonly used to diagnose cancers, infections, or inflammatory conditions. The procedure can be done with a needle, endoscope, or surgical excision.