Treatment of H. pylori infection should be based on your condition and treatment modality to determine the duration of medication, which takes a minimum of 10 to 14 days. H. pylori infection can cause chronic gastritis, gastroduodenal ulcers, and stomach cancer, but more than 80% of carriers have no symptoms. Clinical treatment of H. pylori is usually a quadruple regimen, i.e., a combination of a proton pump inhibitor, a bismuth agent, and two antibiotics, with a course of treatment of about 10 to 14 days. It is usually necessary to retest for H. pylori 4 weeks after stopping the medication to avoid false-negative results while taking the proton pump inhibitor or antibiotics. All of the above drugs are contraindicated in people with allergies and should be taken as prescribed by a doctor. If the patient is diagnosed with H. pylori infection, it is recommended to go to a regular hospital in a timely manner, after clarifying the cause of the disease, under the guidance of the doctor to carry out targeted treatment in order to reduce the adverse effects of the disease.