Out of a variety of heterocycles, triazole scaffolds have been shown to play a significant part in a wide array of biological functions. Many drug compounds containing a triazole moiety with important antimicrobial, anticancer and antidepressant properties have been commercialized. In addition, the triazole scaffold exhibits remarkable antiviral activity either incorporated into nucleoside analogs or non-nucleosides. Many synthetic techniques have been produced by scientists around the world as a result of their wide-ranging biological function. In this review, we have tried to summarize new synthetic methods produced by diverse research groups as well as provide a comprehensive description of the function of [1,2,4] and [1,2,3]-triazole derivatives as antiviral agents. Antiviral triazole compounds have been shown to target a wide variety of molecular proteins. In addition, several strains of viruses, including the human immunodeficiency virus, SARS virus, hepatitis B and C viruses, influenza virus, Hantavirus, and herpes virus, were discovered to be susceptible to triazole derivatives. This review article covered the reports for antiviral activity of both 1,2,3- and 1,2,4-triazole moieties up to 2022.