Surgery is often one of the first lines of treatment for solid tumors. The primary goal is to remove the cancerous tumor and surrounding tissues. Surgeons may also perform biopsies to diagnose the type and stage of cancer. While surgery can be highly effective, it is generally most successful when the cancer is localized and has not spread to other parts of the body.