Opioid dependence is a complex medical condition characterized by a compulsive need to use opioid drugs despite their harmful consequences. These drugs include both prescription medications, such as morphine and oxycodone, and illegal substances like heroin. This condition can lead to severe physical and psychological issues, significantly impacting a person's quality of life.