Dilaudid (hydromorphone) is a powerful opioid analgesic used to treat severe pain, especially in cases where other pain medications are insufficient. It works by binding to opioid receptors in the brain and spinal cord, altering the way the body perceives and responds to pain.