Opioid addiction, including addiction to heroin, has markedly increased in the past decade. The cost and pervasiveness of heroin addiction, including resistance to recovery from addiction, provide a compelling basis for developing novel therapeutic strategies. Deep brain stimulation may represent a viable alternative strategy for the treatment of intractable heroin addiction, particularly in individuals who are resistant to traditional therapies. Here we provide preclinical evidence of the therapeutic potential of high-frequency stimulation of the subthalamic nucleus (STN HFS) for heroin addiction. STN HFS prevented the re-escalation of heroin intake after abstinence in rats with extended access to heroin, an animal model of compulsive heroin taking. STN HFS inhibited key brain regions, including the substantia nigra, entopeduncular nucleus, and nucleus accumbens shell measured using brain mapping analyses of immediate-early gene expression and produced a robust silencing of STN neurons as measured using whole-cell recording ex vivo. These results warrant further investigation to examine the therapeutic effects that STN HFS may have on relapse in humans with heroin addiction.