Different types of esophagitis are treated with different medications, and the common ones are proton pump inhibitors and gastric mucosal protectants. 1. Reflux esophagitis: Proton pump inhibitors (omeprazole, lansoprazole), prokinetic drugs (domperidone, mosapride), gastric mucosal protectants (magnesium aluminum carbonate, aluminum thioglycollate) and other medications can be used for treatment. In addition, it is necessary to cooperate with the improvement of living habits, such as appropriate weight loss, eat less and more meals, avoid tobacco, alcohol, spicy food, coffee and chocolate, etc.. 2. Radiation esophagitis: gastric mucosal protective agents can be used, and prednisone can be used for anti-inflammatory and lidocaine for pain relief. 3. Eosinophilic esophagitis: glucocorticoids (prednisone) and leukotriene receptor antagonists (montelukast) can be used for treatment. 4. Infectious esophagitis: antifungal treatment with ketoconazole and other drugs can be used. Viral infections are mainly treated symptomatically with proton pump inhibitors and gastric mucosal protectants. Appealing drugs are recommended to be used under the guidance of a doctor. Patients with a confirmed diagnosis of esophagitis are advised to go to the hospital and choose the appropriate drugs for treatment under the guidance of a doctor.