Hydrocodone is a prescription opioid medication used to relieve moderate to severe pain. It works by interacting with the brain and nervous system to change how your body feels and responds to pain. Because of its potency, it’s often prescribed after surgeries, injuries, or for chronic conditions that require stronger pain control than over-the-counter medications can provide.