Pyrrolo[2,3-d]pyrimidine and tetrazolopyrimidine derivatives 2a, b-5a, b were prepared. Also, acyclic and cyclic C-nucleosides 7a, b-12a, b were prepared by treating compound 6 with some aldoses. All prepared products were tested for antiviral activity against hepatitis-A virus (HAV, MBB-cell culture adapted strain) and herpes simplex virus type-1 (HSV-1). Plaque reduction infectivity assay was used to determine virus count reduction as a result of treatment with tested compounds. Compound 2a showed the highest effect on HAV, while compound 11b showed the highest effect on the HSV-1 virus.