Hydrocodone is an opioid drug that is used to treat moderate to severe pain. It comes in a variety of forms and is frequently coupled with other medications such as acetaminophen (Vicodin) or ibuprofen (Vicoprofen). Hydrocodone relieves pain by attaching to opioid receptors in the brain and spinal cord.