The present invention discloses novel polyheterocyclic based compounds having general formula Ia-Ib and IIa-IIb and preparation methods and uses thereof. These compounds are highly effective for inhibition of hepatitis C virus (HCV). The present invention is also related to treatment of HCV infection by the polyheterocyclic based HCV inhibitory compounds and compositions thereof and to therapeutic methods thereof.