The world needs a new source of energy, an unspillable source.

Help with electrolytic cells ?

what does it mean that the ions go against a gradient ? the anions are still going towrds the anode and the cations still towards the cathnode. and why do we need an external battery i know the reaction is not spontaneous but why? is it because of the gradient? but what causes the gradient to exist?
aaahhhhhhhh.