The present study was carried out to identify the hepatitis B virus (HBV) genotypes in six patients attending the surgical clinic who were positive for hepatitis B surface antigen. DNA was extracted from the serum of patients and subjected to a modified nested PCR to detect a 585 bp region within the S gene of the HBV genome. Positive PCR products were purified and sequenced via a cycle sequencing method. The sequence data were analyzed with reference sequences in the HepSEQ database to identify the particular HBV genotype of the samples. Nested PCR for the S gene of the HBV genome was positive in 2 out of 6 samples. The genotyping and sequence analysis of the PCR products showed HBV genotype A with a homology of 98% to the reference sequences in the HepSeq database.