The aim of the present work is to identify the presence of Helicobacter pylori bacterium in samples of gastric mucosa fragments, obtained by gastric biopsy, from Brazilian patients with peptic ulcer and chronic gastritis and also to determine differences among the prevalent strains in these two diseases by urease C and urease B genes amplification utilizing nested polymerase chain reaction (PCR) and PCR. We encountered 17 genotyping patterns for urease C and 7 for urease B and, although no significant differences were found among the patterns encountered for both diseases, we found predominant groups for each disease. Typing methods of the products obtained by nested PCR and PCR show a functional scheme and are of great importance for epidemiologic studies and H. pylori strain characterization, in addition to allowing correlation among the several strains and their role in the diseases caused by this microorganism.