Helicobacter pylori is one of the most common causes of chronic bacterial infections in humans and is important in the pathogenesis of gastrointestinal disease, such as duodenal ulcer, gastric ulcer, Gastric adenocarcinoma, and lymphoma. Gastric adenocarcinoma remains one of the leading causes of cancer death in the world. The objective of this study was to assess the effect of photodynamic treatment and medication treatment of Helicobacter pylori using RAPD‐PCR. The lethal photosensitization effect was determined by mixing suspensions of H.pylori with Toluidine blue O (TBO) and plating out on blood agar before irradiation with Helium neon (He‐Ne) 632.8 nm. The susceptibility of Helicobacter pylori isolates to metronidazole and azithromycin were examined by E‐test. Nine random primers were used to screen genetic polymorphism in DNA of different H.pylori groups. Six of them produced RAPD products while three failed to generate any product. The resulting data showed that, although the overall genetic differences between control groups and laser treated groups was higher than that between control groups and azithromycin treated groups yet it still law genetic variability. The main cause of cell death of PDT using TBO as a photosensitizer was mainly cell wall and cytoplasmic membrane.