Opioids are a class of drugs that include both prescription pain relievers, such as oxycodone and morphine, and illegal drugs like heroin. These substances are known for their powerful pain-relieving properties but also have a high potential for abuse and addiction.