Esophageal cancer is a malignancy that occurs in the esophagus, the long, hollow tube that runs from your throat to your stomach. It can lead to difficulty swallowing, weight loss, and pain. There are two main types: squamous cell carcinoma and adenocarcinoma.