Oxycodone is a prescription opiate analgesic—or painkiller—that works by changing the way that the brain responds to pain. It is prescribed to treat moderate to severe pain, and commonly supplied under the brand names OxyContin and Percocet.