The present invention relates to 6-substituted purine carbocyclic nucleosides and their use in medical therapy particularly in the treatment of HIV and HBV infections. Also provided are pharmaceutical formulations and processes for the preparation of compounds according to the invention.