Surgery involves the physical removal of the tumor and, in some cases, surrounding tissues and lymph nodes. It is often used when the cancer is localized and hasn't spread to other parts of the body. Surgery can be curative if all cancerous tissue is removed, palliative to alleviate symptoms, or diagnostic to determine the extent of the disease.