The present invention relates to pentacyclic indole derivatives of formula (I): wherein A, Ar, R1, R2, W, X, Y and Z are defined herein, and pharmaceutically acceptable salts thereof, pharmaceutical compositions comprising them, and their use for the treatment or prevention of infection by hepatitis C virus.