Esophagitis is inflammation of the esophagus, the tube that carries food from the mouth to the stomach. It can be caused by acid reflux, infections, medications, or allergic reactions and typically causes chest pain, difficulty swallowing, and heartburn.