An endometrial biopsy involves taking a small tissue sample from the lining of the uterus. It is used to diagnose conditions such as endometrial hyperplasia and endometrial cancer. Abnormal results may indicate the need for further treatment or monitoring.