Taking a sample of tissue for examination to determine whether cancer cells are present.