The present invention provides methods of treating human immunodeficiency virus (HIV) and/or hepatitis B virus (HBV) infection, including administering a compound described in the invention in an amount effective treat the HIV and/or HBV infection and at least substantially inhibit the development of resistance to said antiviral compounds in the subject. Pharmaceutical compositions are also provided.