Cancer surgery removes tumors and surrounding affected tissues to prevent the spread of disease. In gastroenterology, it may target the stomach, intestines, liver, pancreas, or bile ducts. Surgery can be combined with chemotherapy or radiation for better results. The primary goal is to remove all visible cancer and restore normal organ function wherever possible.