In the absence of a safe and effective alternative treatment for chronic musculoskeletal pain, the prescription of opioid analgesics has escalated dramatically over the past decade. Their use, however, can be associated with the persistence, or even enhancement, of chronic pain, and might also induce powerful positively-reinforcing psychological effects that lead to clinical dependence, as outlined in this Review.