Background: Unfortunately, the eradication rate of Helicobacter pylori (H. pylori) treatment is markedly decreasing in recent years and the major reason is antibiotic resistance. Our study was designed to determine the effect and safety of H. pylori eradication treatment based on the molecular pathologic antibiotic resistance. Methods: 261 patients were analyzed retrospectively, including 111 patients who were treated for the first time (one group as First-treated) and 150 patients who failed at least once in bismuth quadruple therapy (another group as Re-treatment). Antibiotic resistance was examined by Real-time PCR detection and conventional PCR and sequencing method. The eradication rate (ER) was compared per intention to treat (ITT) and per protocol (PP) between the two groups. Results: The resistance rates to amoxicillin, clarithromycin, fluoroquinolone and tetracycline were 5.5%, 42.1%, 41.7% and 12.9% in the 111 first-treated patients, and 11.7%, 79.7%, 70.7% and 30.0% in the 150 re-treatment patients. The ERs in the ITT and PP analyses were 92.79% (95% CI, 87.98-97.60%, n=111) and 98.10% (95% CI, 95.48-100%, n=105), respectively, in the first-treated patients and 90.67% (95% CI, 86.01-95.32%, n=150) and 95.10% (95% CI, 91.57-98.64%, n=143), respectively, in the re-treatment patients. No significant differences were shown in the ERs between two group patients, and no serious adverse events were found. Conclusion: H. pylori eradication treatment based on molecular pathologic antibiotic resistance showed good effect and safety in both first and retreated patients.