Pathologists diagnose cancer by analyzing biopsy samples. A biopsy involves removing a small piece of tissue from the suspected cancer site, which is then examined under a microscope. The pathologist will look for abnormal cells, assess their structure, and determine if they are benign or malignant. This process often includes additional techniques such as immunohistochemistry and molecular pathology.