The present invention relates to compounds that are useful in the treatment of viruses belonging to Flaviviridae, including flaviviruses, pestiviruses, and hepaciviruses. The invention includes compounds useful for the treatment or prophylaxis of dengue fever, yellow fever, West Nile virus, and HCV.