Research has shown that opioid craving is one of the strongest determinants of opioid misuse in patients with chronic pain. To date, however, little is known on the factors that contribute to opioid craving in these patients. It is possible that patients' physical dependence to opioids, manifested by opioid withdrawal symptoms in between daily opioid doses, contribute to opioid craving. Physical dependence symptoms might also lead to psychological distress, which in turn might contribute to opioid craving. The first objective of this study was to examine the day-to-day association between opioid withdrawal symptoms and opioid craving among patients with chronic pain. We also examined whether negative affect and catastrophic thinking mediated this association.