Why are drugs addictive?

I know that the euphoria makes people want to do drugs more, but is that the only thing that's addictive? Just wanting to feel that again? I know that people that abuse Heroin can become dependent in order to live, but sometimes withdrawal is so bad that people have to be put into comas to quit drugs.