An opioid analgesic called oxycodone is used to treat pain, particularly moderate to severe pain. In order to change how the body perceives pain and assist patients in managing either acute or chronic diseases, it binds to opioid receptors in the brain and spinal cord.