Equilibrium of junction
Coulomb force from ions prevents further migration across thep-n junction. The electrons which had migrated across from the N to the P region in the forming of thedepletion layer have now reached equilibrium. Other electrons from the N region cannot migrate because they are repelled by the negative ions in the P region and attracted by the positive ions in the N region.