Provided herein are macrocyclic serine protease inhibitor compounds, for example, of Formula Ia or Ib, pharmaceutical compositions comprising the compounds, and processes of preparation thereof. Also provided are methods of their use for the treatment of an HCV infection in a host in need thereof.