The present invention discloses compounds of Formula (I), or pharmaceutically acceptable salts, thereof: which inhibit the cellular entry of hepatitis B virus (HBV) and/or hepatitis D virus (HDV) or interfere with the function of the life cycle of HBV and/or HDV and are also useful as antiviral agents. The present invention further relates to pharmaceutical compositions comprising the aforementioned compounds for administration to a subject suffering from HBV and/or HDV infection. The invention also relates to methods of treating an HBV and/or HDV infection in a subject by administering a pharmaceutical composition comprising the compounds of the present invention.