Hydrocodone is an opioid pain medication. Hydrocodone is an opioid used to treat pain and as a cough suppressant. It is taken by mouth.