A focused screening strategy identified thienopyrimidine 12 as a cannabinoid receptor type 2 agonist (hCB2) with moderate selectivity over the hCB1 receptor. This initial hit suffered from poor in vitro metabolic stability and high in vivo clearance. Structure-activity relationships describe the optimization and modification to a new more polar series of purine CB2 agonists. Examples from this novel scaffold were found to be highly potent and fully efficacious agonists of the human CB2 receptor with excellent selectivity against CB1, often having no CB1 agonist activity at the highest concentration measured (>100 μM). Compound 26 is a centrally penetrant molecule which possesses good biopharmaceutical properties, is highly water-soluble, and demonstrates robust oral activity in rodent models of joint pain. In addition, the peripherally restricted molecule 22 also demonstrated significant efficacy in the same analgesic model of rodent inflammatory pain.