The present invention discloses compounds of Formula (I), or pharmaceutically acceptable salts, thereof:which inhibit the protein(s) encoded by hepatitis B virus (HBV) or interfere with the function of the HBV life cycle of the hepatitis B virus 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 infection. The invention also relates to methods of treating an HBV infection in a subject by administering a pharmaceutical composition comprising the compounds of the present invention.本發明揭露了式(I)之化合物或其醫藥上可接受的鹽:其抑制由B型肝炎病毒(hepatitis B virus,HBV)所編碼的蛋白質或干擾B型肝炎病毒的HBV生命週期的功能,且作為抗病毒試劑也是有用的。本發明更有關於包含上述化合物之用於投予受HBV感染之苦的對象的醫藥組合物。本發明亦有關於藉由投予包含本發明之化合物的醫藥組合物,來治療對象中的HBV感染的方法。