An endometrial biopsy is a medical procedure in which a small sample of the tissue lining the uterus (endometrium) is removed for examination under a microscope. This procedure is often used to diagnose or rule out endometrial cancer, which is a type of cancer that begins in the lining of the uterus.