An endometrial biopsy involves taking a small sample of the lining of the uterus. It is often performed to investigate abnormal uterine bleeding or to check for endometrial hyperplasia or cancer. The procedure is typically done in the office and may cause some cramping.