Strong opioid drugs like hydromorphone are usually used to treat extreme pain that does not go away with other painkillers. It is frequently used for severe chronic pain disorders, cancer-related pain, and post-operative pain.