Both play a role. But in my experience for most common addictions the psychological component is the bigger issue. The physical dependency can't be ignored and is something you have to manage when quitting, but what brings people back is usually the psychological addiction.
Of course this depends on the addiction. With some hard drugs or coffee the physical dependency is the bigger factor
Of course this depends on the addiction. With some hard drugs or coffee the physical dependency is the bigger factor