Esophagitis is an inflammation affecting the tissues of the esophagus. This inflammation often causes pain during swallowing, difficulty swallowing, and chest pain. The causes include acid reflux from the stomach into the esophagus, swallowing medications, infections, and allergies.