Gastroesophagitis is best treated with a combination of diet control and medication. 1. Diet control: Eat and drink regularly, mainly light and easy-to-digest food, such as rice paste, rice porridge, etc. Avoid overeating and eat less greasy, spicy and stimulating food, such as fatty meat, braised meat, strong tea, spirits, chili peppers, ice lollies, hot pots, etc. Avoid eating three hours before going to bed, and avoid lying down immediately after the meal. Avoid eating three hours before going to bed, and avoid lying down immediately after meals. 2. Medication: Patients with more severe acid reflux can take antacid medication, such as rabeprazole, ranitidine and other drugs. Indigestion patients can use to promote gastrointestinal power drugs, such as mosapride, domperidone tablets and other drugs. It should be noted that the use of drugs should be taken under the guidance of a professional doctor or pharmacist as prescribed by the doctor. If there is a combination of Helicobacter pylori infection, eradication treatment can be carried out using the quadruple method, i.e. one proton pump inhibitor such as omeprazole + one bismuth such as colloidal bismuth + two antibiotics such as amoxicillin and clarithromycin. If the effect of medication is not satisfactory or the symptoms persist for a longer period of time, raising the head of the bed by 5 centimeters before going to bed can help reduce acid reflux at night.