To investigate the genetic heterogeneity and epidemiological distribution of human immunodeficiency virus type 1 (HIV-1) in Thailand, we determined proviral sequences for 63 HIV-1-infected patients in various risk groups from all over the country between April and July, 1991. Two distinct genotypes of HIV-1, A and B, were found to segregate by mode of transmission. Of 29 sexually infected patients, 25 (86%) had HIV-1 of genotype A and 4 (14%) had genotype B. Among 29 injecting drug users, probably parenterally infected, only 7 (24%) had genotype A and 22 (76%) had genotype B. This segregation is unlikely to have arisen by chance (p < 0.001). No patient was found to have dual infection. Nucleotide divergence averaged 3.4% among genotype-A-infected patients and 3.5% among genotype-B-infected patients, but 22.0% between the genotypes. 37 of 40 isolates (both genotypes) had the GPGQ tetrapeptide at the tip of the V3 loop, which is common in African HIV-1 strains but rare in North American and European strains, where the GPGR motif predominates. These findings suggest that the waves of HIV-1 infection in injecting drug users and in sexually infected patients in Thailand may not be epidemiologically linked. The nucleotide divergence data point to the separate introductions of the two genotypes in Thailand. Further studies in Thailand and neighbouring countries will be useful in the design and selection of candidate HIV vaccines.