Hydrocodone is a prescription opioid used to treat moderate to severe pain, often after surgery or injury, or in cases where other pain medications are not sufficient. It is commonly combined with non-opioid pain relievers such as acetaminophen to enhance effectiveness.