Immunotherapy may be used for esophageal cancer that can't be treated with surgery, or cancer that comes back. It may be used on its own. Or it may be used along with other types of treatments.