Action potentials are propagated through the axon via the opening of sodium ion channels in which sodium ions rush in. After the depolarization period has ended, the repolarization period starts in which potassium ion channels open and potassium ions rush in while sodium ions rush out, it usually tends to overshoot and this is known has hyperpolarization. Since the inside is too negative, it has to be restored to its resting potential and so, some potassium ions have to leave in order to return to the axon's initial resting potential.