Opioids are prescribed to treat pain. With prolonged use, pain-relieving effects may lessen and pain can become worse. In addition, the body can develop dependence. Opioid dependence causes withdrawal symptoms, which makes it difficult to stop taking them. Addiction occurs when dependence interferes with daily life. Taking more than the prescribed amount or using illegal opioids like heroin may result in death.