Hepatitis B virus (HBV) genotyping and treatment resistances analysis provide key information for the study of infected patients. Among the existing HBV genotyping methods, restriction fragment length polymorphism (RFLP) based methods are used widely, but HBV genetic variability may lead to wrong results. A simple method for HBV genotyping is described. This single assay provides information related to both genotyping and lamivudine resistance. measuring genotyping reliability. A short region including the YMDD motif of the polymerase gene was analyzed using cluster analysis of 55 isolates. To discriminate the seven HBV genotypes, a selected fragment was used as representative of each genotype (consensus sequences). Comparison between complete genomes from GenBank and from the YMDD analysis using PHILIP package was used for method testing. Sequencing of 102 different serum samples was carried out, and the results were compared with representative sequences. Consensus sequences were chosen corresponding to the different HBV genotypes. Statistical comparison between our method and others gives more than 90% of coincidences with a critical level of 0.056. Comparison between RFLP and the method described gives 3% of discordance results and 3% of untypables samples by RFLP. All the discordant results observed had a change in the pre-S sequence which introduced a new restriction site.