When it's possible, the goal of cancer surgery is to remove all of the cancer from the body. To do this, the surgeon uses cutting tools to remove the cancer and some healthy tissue around it.
The surgeon may also remove some lymph nodes in the area. The lymph nodes are tested to see if they contain cancer cells. If cancer spreads to the lymph nodes, there's a chance that the cancer could spread to other parts of the body.