Nexium refers to esomeprazole magnesium enteric-coated tablets, and how long the drug should be taken should depend on the specific disease, ranging from 10 days to 8 weeks. Esomeprazole magnesium enteric-coated tablets are acid inhibitors, which can inhibit gastric acid secretion, and are commonly used clinically in the treatment of duodenal ulcer, gastric ulcer, eradication of Helicobacter pylori, and gastroesophageal reflux disease. The dosage cycle of the drug varies in the treatment of different diseases. 1. Treatment of duodenal ulcer: the course of treatment is usually 4~6 weeks. 2. Treatment of gastric ulcer: the course of treatment is usually 6~8 weeks. 3. Eradication of Helicobacter pylori: a quadruple regimen with antibiotics and bismuth, the course of treatment is usually 10~14 days. 4. Treatment of gastroesophageal reflux disease (including reflux esophagitis): the course of initial treatment should be not less than 8 weeks, and the program of maintenance treatment should be formulated according to the condition under the guidance of doctors. How long to take esomeprazole magnesium enteric-coated tablets should be based on their own disease and the severity of the specific, the above program is only a general recommendation, specific recommendations carefully read the instructions and consult a doctor, under the guidance of the doctor to choose the correct medication program.