Surgery involves the physical removal of cancerous tissue from the body. It is most effective when the cancer is localized and has not spread to other parts of the body. Surgeons aim to remove the tumor entirely, along with some surrounding healthy tissue to ensure no cancer cells are left behind. In some cases, lymph nodes may also be removed to check for spread.