Background: Even though validation studies of the WHO analgesic ladder have indicated that the simple approach of the analgesic ladder can provide adequate pain control in most patients, prevalence studies have documented a high prevalence of pain in cancer patients. Little is known about how analgesics are actually prescribed for cancer pain. The aim of the study was to study prescriptions of analgesics during the entire disease trajectory in patients dying from cancer within five years of diagnosis.