Heartburn after eating spicy food is mainly treated by diet and medication. Diet includes drinking millet porridge and warm water, and medication includes aluminum phosphate gel and omeprazole. 1. Dietary control: heartburn after eating spicy food is usually due to stimulation of the gastric mucosa, you can drink millet porridge, soft noodles, soda and other alkaline foods to neutralize the stomach acid, drink some warm water, milk to dilute the concentration of capsaicin in the stomach, can play a certain role in relieving. 2. medication: if the heartburn is severe, after adjusting the diet did not significantly improve, you can take gastric mucosal protectants under the guidance of a doctor, such as aluminum phosphate gel, aluminum magnesium carbonate, but also acid inhibitors, such as omeprazole, rabeprazole and so on. Heartburn after eating spicy food in the above methods without significant improvement should be timely to the hospital, under the guidance of the doctor for treatment.