The present invention relates to compounds of formula (I) that are useful as hepatitis C virus (HCV) NS5A inhibitors, the synthesis of such compounds, and the use of such compounds for inhibiting HCV NS5A activity, for treating or preventing HCV infections and for inhibiting HCV viral replication and/or viral production in a cell-based system.