Oxycodone is an opiate painkiller. It's used to treat severe pain, for example after an operation or a serious injury, or pain from cancer where other alternative treatments are inadequate.