Dilaudid is the brand name of the drug hydromorphone, which is used to relieve pain. This medicine is in a class of drugs called opiate analgesics. It works by changing the way the brain and nervous system respond to pain. The Food and Drug Administration (FDA) approved hydromorphone in 1984.