Drug rehabilitation aims to break this cycle of dependency ; this is done with psychotherapy , support groups and even other psychoactive substances : Acamprosate or naltrexone are examples of substances used to treat alcoholism , methadone or buprenorphine maintenance therapy in the case of opioid dependency . Drug rehabilitation aims to break this cycle of dependency , through a combination of psychotherapy , support groups and even other psychoactive substances such as acamprosate or naltrexone in the treatment of alcoholism , or methadone or buprenorphine maintenance therapy in the case of opioid dependency .