Methadone hydrochloride (methadone) is a long-acting synthetic opioid approved for the treatment of opioid dependence. Methadone treats opioid dependence by blocking the effect of opioids, easing cravings for opioids, and alleviating withdrawal symptoms.