A needle biopsy is a medical procedure used to extract a small sample of tissue from a suspicious area in the body. This sample is then examined under a microscope to determine if cancer cells are present. Needle biopsies are commonly used to diagnose various types of cancer, including breast, lung, prostate, and liver cancers.