The behavioral results of this study suggest that resveratrol can be used as a potential drug to treat heroin dependence. At the same time, SIRT1 The expression of BDNF, GDNF, and PSD95 increased; SIRT1, BDNF, GDNF, and PSD95 play an essential role in heroin addiction.