Antivirals and antiretrovirals are a class of medication used for treating viral infections. They are divided into different classes depending upon the site of action, with reference to viral life cycle.