Hydrocodone is a prescription opioid medication that is primarily used for the relief of moderate to severe pain. It belongs to the class of drugs known as narcotic analgesics. Hydrocodone works by binding to opioid receptors in the brain and spinal cord, which helps to reduce the perception of pain.