OBJECTIVE: Whether Helicobacter pylori infection and use of nonsteroidal antiinflammatory drugs (NSAIDs) are independent risk factors for ulcerogenesis remains unclear. We undertook this study to evaluate H. pylori isolates from gastric ulcer patients to determine whether the genotype of the infecting isolate could be correlated with the use or nonuse of NSAIDs. METHODS: Fifty-two patients presenting with gastric ulcer and infected with H. pylori were included; 26 patients were taking NSAIDs or aspirin (ASA) regularly at the time of ulcer diagnosis. Polymerase chain reaction (PCR) was employed to assess the presence and mosaicism of the following H. pylori genes: cagA, vacA, iceA, and picB. RESULTS: We found no statistical differences in the presence of these genes in H. pylori isolates from gastric ulcer patients taking or not taking prescription NSAIDs or ASA. A 297-bp fragment of the cagA gene was detected in 96% of the isolates from the NSAID and ASA users and 100% from the non-NSAID users ( p = 1.0). A larger and more variable region of the cagA gene was detected more frequently among the isolates from non-NSAID users than those from NSAID users ( p = 0.05). Ninety-two percent of the isolates were identified as vacA genotype s1. The dominant vacA subtype was s1b, 76.9% and 65.4% in isolates from non-NSAID–taking or NSAID–taking patients, respectively ( p = 0.4). iceA1 genotype was not correlated with gastric ulcer as this allele was only detected in 17.3% of all isolates. CONCLUSIONS: No significant differences in the presence of the candidate virulence genes vacA, cagA, picB, or iceA were detected in isolates from gastric ulcer patients taking prescription NSAIDs or ASA, compared with those not taking these drugs, indicating that single gene presence does not allow discrimination of isolates that may be important in NSAID-induced ulcerogenesis. A variable region of the cagA gene was more frequently detected in isolates from patients not taking NSAIDs or ASA, suggesting that this gene may be modified by NSAID- or ASA-related factors or that certain strains may be selected for in patients taking these medications.