Hydrocodone is a prescription opioid used to manage moderate to severe pain, particularly when other pain relievers, such as non-opioid medications, are not effective.