an n - aminoimidazole or n - aminoimidazolethione derivative , a pharmaceutically acceptable salt , a tautomer , an isomer , an ester or glycosylation product thereof , said derivative being represented by general formula : wherein m = zero or 1 , n = zero or 1 , r 1 is selected from hydrogen , methyl or ethyl , r 2 is selected from hydrogen , sh or — sr 0 wherein r 0 is methyl , benzyl or glucose residue ; q is selected from 1 - naphtyl , 2 - naphtyl , biphenyl , 2 - pyridyl , 3 - pyridyl , 4 - pyridyl , 2 - pyrimidyl , 4 - pyrimidyl , 5 - pyrimidyl , thienyl , or a substituted or unsubstituted phenyl ring , wherein the substitution is understood as being one or two substituents selected from h , f , cl , br , i , methyl , ethyl or isopropyl ; l is selected from 1 - naphtyl , 2 - naphtyl , biphenyl , 2 - pyridyl , 3 - pyridyl , 4 - pyridyl , 2 - pyrimidyl , 4 - pyrimidyl , 5 - pyrimidyl , thienyl , or a substituted or unsubstituted phenyl ring wherein the substitution is understood as being one or two substituents selected from h , f , cl , br , i , methyl , ethyl or isopropyl . this invention further relates to the use of compounds of formula as agents having biological activity , especially against viral infections .