Thiophene-substituted tetracyclic compounds of formula (I) and pharmaceutically acceptable salts thereof, wherein A, A′, R2, R3, R4 and R5 are as defined herein. The compositions comprising at least one thiophene-substituted tetracyclic compound, and methods of using the thiophene-substituted tetracyclic compounds for treating or preventing HCV infection in a patient are also provided.