Oxycodone is a prescription opioid medication used to relieve moderate to severe pain. It works by acting on opioid receptors in the brain and nervous system, changing how the body perceives and responds to pain. Oxycodone is a prescription opioid medication used to relieve moderate to severe pain. It works by acting on opioid receptors in the brain and nervous system, changing how the body perceives and responds to pain.