The dopamine transporter (DAT) is an integral member of the dopaminergic system and is responsible for the release and reuptake of dopamine from the synaptic space into the dopaminergic neurons. DAT is also the major target of amphetamine (Amph). The effects of Amph on DAT have been intensively studied; however, the mechanisms underlying the long-term effects caused by embryonal exposure to addictive doses of Amph remain largely unexplored. As in mammals, in the nematode C. elegans Amph causes changes in locomotion which are largely mediated by the C. elegans DAT homologue, DAT-1. Here, we show that chronic embryonic exposures to Amph alter the expression of DAT-1 in adult C. elegans via long-lasting epigenetic modifications. These changes are correlated with an enhanced behavioral response to Amph in adult animals. Importantly, pharmacological and genetic intervention directed at preventing the Amph-induced epigenetic modifications occurring during embryogenesis inhibited the long-lasting behavioral effects observed in adult animals. Because many components of the dopaminergic system, as well as epigenetic mechanisms, are highly conserved between C. elegans and mammals, these results could be critical for our understanding of how drugs of abuse initiate predisposition to addiction.