An esophagectomy is often performed to treat esophageal cancer. The doctor will connect the remaining healthy part of the esophagus to the stomach so the patient can still swallow. A plastic tube or part of the intestine may be used to make the connection. Lymph nodes near the esophagus may also be removed and viewed under a microscope to see if they contain cancer. If the esophagus is partly blocked by the tumor, an expandable metal stent (tube) may be placed inside the esophagus to help keep it open.