Provided are compounds antiviral compounds represented by formula Ia and Ib:that are highly potent as HCV NS5A inhibitors, where the structural variables are as defined herein. These compounds are useful in, for example, inhibiting Hepatitis C virus and treating Hepatitis C virus infections.