Oxycodone is a prescription opioid medication used to treat moderate to severe pain. It works by binding to opioid receptors in the brain and spinal cord, which reduces the perception of pain and can also produce feelings of euphoria.