New 1,2,3-triazole glycosides and 1,2,4-thioglycosides incorporating a substituted pyrimidinedione ring system were synthesized via click dipolar cycloaddition and heterocyclization of hydrazine-1-carbodithioate derivatives, respectively. The sugar hydrazine derivatives linked aminodimethyluracil were also prepared. In addition, the oxadiazoline substituted with acyclic sugar moieties linked to the pyrimidinedione as acyclic nucleoside analogs were synthesized. The antiviral activity of the synthesized compounds against avian influenza H5N1 virus was investigated and compounds , and showed good activities against the virus strains.